What are some useful crates?
from SethranKada@lemmy.ca to rust@programming.dev on 17 Nov 2023 17:31 +0000
https://lemmy.ca/post/9537198
from SethranKada@lemmy.ca to rust@programming.dev on 17 Nov 2023 17:31 +0000
https://lemmy.ca/post/9537198
I love browsing crates.io and blessed.rs for interesting and useful crates to experiment with. What are your favorite?
I’m especially interested in those simple ones that do one thing and do it will, like uuid, tempfile, and notify.
#rust
I mean serde is – in my understanding – the most useful crate out there. It does exactly one thing and that very well.
Dtolney, the author for serde, has a stupid amount of libraries that fit this.
Other than serde, he owns syn, thiserror, anyhow, and async-trait.
He’s practically the Atlas of the Rust ecosystem.
I love chumsky and iced. They are still under heavy feature development, but their design feels great.
Here is an originally random list (using
cargo tree --prefix=depth
) with some very loose logical grouping. Wide-scoped and well-known crates removed (some remaining are probably still known by most).If you are looking for something specific or a category of crate you may want to checkout lib.rs, a great alternative frontend for crates.
I like isolang for handling ISO-639 language codes.
(Disclaimer: I contributed to it)
In the async world, I love the smol stack where each functionality is split into an independent subcrate.
Here are some I found and used in my own code:
This is the first time I’m hearing about blessed.rs, thank you. Havent used lib.rs since they closed the source. Thanks for sharing.
I wrote a string case conversion library called “convert-case”. Most people use “heck”. They use different patterns, and different naming conventions. I prefer mine (more features), but it also came out long after heck became standard.