rust-delegate
Rust method delegation with less boilerplate (by Kobzol)
pollster
A minimal async executor that lets you block on a future (by zesterer)
rust-delegate | pollster | |
---|---|---|
8 | 3 | |
421 | 443 | |
- | - | |
6.7 | 3.6 | |
4 months ago | 6 months ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rust-delegate
Posts with mentions or reviews of rust-delegate.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-08.
-
On inheritance and why it's good Rust doesn't have it
Ah, that answers the first question, as to how inheritance is superior to manual delegation. By the way, this crate seems to do a good job of supporting delegation: https://crates.io/crates/delegate. I have nothing against this in principle.
-
Fellow Rust enthusiasts: What "sucks" about Rust?
This is certainly one that's bugged me too. There's the delegate crate which helps, but is still a decent amount of boilerplate due to macro limitations
- Enum variants share Trait while Parent does not - A Better solution?
-
Hey Rustaceans! Got a question? Ask here! (44/2022)!
As u/onomatopeiaddx said, it isn't possible since macros only have access to the token tree it is given. I don't see why a newtype wouldn't work tho. and to help with newtypes you may want to have a look at the delegate crate
-
The Rust RFC process does not seem as amazing as I initially thought
Macros, probably. For example this one, that was already made by someone else, published on crates.io and is actively maintained. If the feature is already possible in rust, but requires a lot of boilerplate, then macros are the answer 99% of the time.
-
Inheritance to composition
delegate crate would reduce some boilerplate.
- Is there a way to append to struct in Rust?
pollster
Posts with mentions or reviews of pollster.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-08.
-
Rust criticism from a Rustacean
Other than that, I'm using async mostly not in a web-based environment, unlike your assumption that the "so-called web-devs" only want to use it. It's also quite flexible, you want it blocking? Start a blocking executor. You don't want tokio for that? Use a minimal executor like https://github.com/zesterer/pollster for that...
-
Fellow Rust enthusiasts: What "sucks" about Rust?
Check out https://github.com/zesterer/pollster. This can be the solution to the async problem you described
-
Tachyonix: a very fast MPSC async bounded channel
Pollster: https://github.com/zesterer/pollster
What are some alternatives?
When comparing rust-delegate and pollster you can also consider the following projects:
born - Remove code duplication from Struct and Enum with functional macros.
tachyonix - An asynchronous, multi-producer, single-consumer (MPSC) bounded channel that operates at tachyonic speeds
dislike-in-rust - A list of the few things I don't like about rust
getrandom - A small cross-platform library for retrieving random data from (operating) system source
compiler-team - A home for compiler team planning documents, meeting minutes, and other such things.
SHLL - An experiment of high level code optimization
rust-orphan-rules - An unofficial, experimental place for documenting and gathering feedback on the design problems around Rust's orphan rules
askama - Type-safe, compiled Jinja-like templates for Rust
storages-api
rust-delegate vs born
pollster vs tachyonix
rust-delegate vs dislike-in-rust
pollster vs getrandom
rust-delegate vs getrandom
pollster vs dislike-in-rust
rust-delegate vs compiler-team
pollster vs SHLL
rust-delegate vs SHLL
pollster vs rust-orphan-rules
rust-delegate vs askama
pollster vs storages-api