r/rust • u/OzelleThorn • 1d ago
๐ seeking help & advice Crates whose READMEs feel like mini tutorials?
I keep coming back to certain Rust crates mainly because their README walks through not just the API, but the actual patterns you're expected to use. Ratatui does this well for TUI work. I'm looking for more examples across different domains CLI, web, data, embedded, whatever-where the docs effectively teach "how to think in this crate" rather than just listing methods. Any favorites that stand out for this?
0
Upvotes
1
u/stinkytoe42 1d ago
Bevy is great for this as well. https://bevy.org/
1
u/epage cargo ยท clap ยท cargo-release 15h ago
My parser combinator library has a ground-up tutorial in rustdoc. https://docs.rs/winnow/latest/winnow/_tutorial/chapter_0/index.html
1
u/cobweb6542 12h ago
tracingis a good one, its README explains why traditional logging becomes problematic in async applications and introduces spans, events and subscribers in that context.Id also recommend
nom. Its documentation teaches you how to compose small parsers into larger ones rather than just throwing a combinators at you.More crates should explain the reasoning behind their design decisions. Knowing how to use an API and knowing how to use it effectively are two very different things.
0
u/Amazing-Mirror-3076 1d ago
So not a library
https://crates.io/crates/revault_cli
I'm the author