4 ms·
A project like this can still be very useful if only to show newbies which libraries are the canonical ones. I've noticed with Rust their are many libraries whi
by zucker42 6y ago
A project like this can still be very useful if only to show newbies which libraries are the canonical ones. I've noticed with Rust their are many libraries which any experience Rust user would know about but which are not obvious to a newbie.
- burntsushi 6y agoBut it doesn't do that either. For example, it uses failure for error handling, which has been deprecated for quite some time. It would be better to just go look at real CLI utilities and see what they do instead of trying to use something like this IMO. This project seems to just be throwing everything against the wall. It's likely you won't need most of it. For example, this template uses twice as many dependencies as ripgrep.
- jokethrowaway 6y agoI 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.