4 ms·
I disagree that there are "canonical" libraries outside of std. Rust is quite feature rich and perfectly usable without any of these. Some people are a bit tr
by jokethrowaway 6y ago
I disagree that there are "canonical" libraries outside of std.
Rust is quite feature rich and perfectly usable without any of these.
Some people are a bit trigger happy when adding dependencies, without considering the extra cost in maintenance and security.
- zucker42 6y agoI consider rand, clap, tokio, serde, and hyper, among others, to be canonical Rust libraries. There may be alternatives, but a new person might be wondering "how do I generate a random number in Rust" and not want to roll their own RNG or find another library. And that's not to say you have to use any of those in any particular project, just that they are the main options for achieving their particular functionality.
- mattgreenrocks 6y agoCargo's website is quite good. It is easy to punch in a keyword and compare results to figure out which lib fits my use case best. I don't think it gets enough credit for being so pleasant to use.