A list of recommended libraries. "std required" is okay for libraries on this list.
There's a maximum two-three per task, of this grows to 58 libraries for error handling it doesn't help since people still don't know what to use.
At the bottom I've also added recommended rustup/cargo things.
maybe:?
log with tracing and tracing-subscriber
Can use log from above, or these:
serde, usually with serde-json
hyper (low level server & client)
bytemuck for generic byte mucking
crypto has generic crypto algorithms.
rustls has a full TLS suite.
syn for parsing macro input
quote for assambling macro output
darling for parsing macro input into structs
sqlx for creating queries.
rustfmt - format your rust code
clippy - get more help and tips to improve your code
flamegraph - get flamegraph svgs
cargo-audit - check your dependencies for vulnerabilities
cargo-tarpaulin - code coverage
Great! Open a pull request, if you want a library added and there's already two for that task include motivation which should be removed and why.
As an experienced (>10 years) backend developer the disconnect between the "Rust by example"-book and what I imagined "rust in production" to be was bugging me. I wasn't sure which libraries to go. A question on the rust reddit led me to create this.