▲ | zozbot234 4 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||
Rust intentionally chooses to have a small standard library to avoid the "dead batteries" problem. But the Rust community also maintains lists of "blessed" crates to try and cope with the issue of having to trust third-party software components of unknown quality. | ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | jen20 3 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
Different trade offs, both are fine. The downside of a small stdlib is the proliferation of options, and you suddenly discover(ed?, it's been a minute) that your async package written for Tokio won't work on async-std and so forth. This has often been the case in Go too - until `log/slog` existed, lots of people chose a structured logger and made it part of their API, forcing it on everyone else. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | traceroute66 4 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
> Rust intentionally chooses to have a small standard library to avoid the "dead batteries" problem. There is a difference between "small" and Rust's which is for all intents and purposes, non-existent. I mean, in 2025, not having crypto in stdlib when every man and his dog is using crypto ? Or http when every man and his dog are calling REST APIs ? As the other person who replied to you said. Go just allows you to hit the ground running and get on with it. Having to navigate the world of crates, unofficially "blessed" or not is just a bit of a re-inventing the wheel scenario really.... P.S. The Go stdlib is also well maintained, so I don't really buy the specific "dead batteries" claim either. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|