TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rust needs an extended standard library

24 pointsby amatheus8 months ago

5 comments

steveklabnik8 months ago
This has been suggested and tried over the years, even with the same name: <a href="https:&#x2F;&#x2F;crates.io&#x2F;crates&#x2F;stdx" rel="nofollow">https:&#x2F;&#x2F;crates.io&#x2F;crates&#x2F;stdx</a><p>In practice, they don’t gain adoption. The current situation is just better, or at least, many more people seem to think that in practice.
评论 #41727637 未加载
spease8 months ago
No. This is lazy, and ignores how Rust is unique.<p>What would be better is to have a set of standard traits that libraries can implement to provide a service.<p>Effectively, create a standard and let other people build things that adhere to that standard.<p>This gives the freedom to people to choose what implementation best suits their purpose, but still be able to write code that’s decoupled from a specific library in case it disappears.<p>Another standard library would just be like boost in C++. That sort of makes sense if you have no package manager so integrating new libraries is a nightmare, and type-safety is pretty lax, but Rust is on the opposite side of both of those things.
评论 #41728391 未加载
评论 #41732204 未加载
评论 #41728243 未加载
cloudhead8 months ago
Even better would be to have some of the basics in the standard library, like Go and Zig.
p0w3n3d8 months ago
Time! You forgot about time API. The hardest thing in the world, to setup meeting with a person in Asia on the day before they switch to a DST
评论 #41728614 未加载
daghamm8 months ago
How can Rust claim to be secure if you can&#x27;t do even the smallest task without importing a bunch of random crates?