async-trait
Type erasure for async trait methods (by dtolnay)
bson-rust
Encoding and decoding support for BSON in Rust (by mongodb)
async-trait | bson-rust | |
---|---|---|
7 | 1 | |
1,697 | 378 | |
- | 0.8% | |
8.2 | 7.3 | |
14 days ago | 26 days ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
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.
async-trait
Posts with mentions or reviews of async-trait.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-05.
-
Introduction to Rust generics [1/2]: Traits
As of today, async functions in traits are not natively supported by Rust. Fortunately, David Tolnay got our back covered (one more time): we can use the async-trait crate.
- How to assign async fn to type?
-
Understanding lifetimes for real?
You might want to check out https://github.com/dtolnay/async-trait to be able to declare async functions in a trait.
-
David Tolnay - thank you
Also async-trait (GitHub), dtolnay has done some great work!
-
What are your favorite tricks or hacks in rust?
Does async-trait count as a trick or hack? It's not my hack, but it's a workaround/hack that I use every single day.
-
Why asynchronous Rust doesn't work
This macro goes a very long way toward solving the problem: https://github.com/dtolnay/async-trait
-
Question about traits, associated types, Future, Pin, and Send...
I'm still learning async to I cannot answer all the questions. First of all, I use this -> https://github.com/dtolnay/async-trait to take care of the async-inside-traits mess.
bson-rust
Posts with mentions or reviews of bson-rust.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-05.
-
Introduction to Rust generics [1/2]: Traits
This is especially useful for data deserialization: Just by implementing the Serialize and Deserialize traits from the serde crate, the (almost) universally used serialization library in the Rust world, we can then serialize and deserialize our types to a lot of data formats: JSON, YAML, TOML, BSON and so on...
What are some alternatives?
When comparing async-trait and bson-rust you can also consider the following projects:
monadless - Syntactic sugar for monad composition in Scala
ureq - A simple, safe HTTP client
reqwest - An easy and powerful Rust HTTP Client
serde-yaml - Strongly typed YAML library for Rust
rust-quiz - Medium to hard Rust questions with explanations
toml-rs - A TOML encoding/decoding library for Rust
cargo-llvm-lines - Count lines of LLVM IR per generic function
rust-script - Run Rust files and expressions as scripts without any setup or compilation step.
rupy - HTTP App. Server and JSON DB - Shared Parallel (Atomic) & Distributed
hyper - An HTTP library for Rust
db-dump - Library for scripting analyses against crates.io's database dumps