4 ms·
The ONLY lib missing from stdlib. Is the time library. Maybe unified interface to work with DB. Cryptographic functions while useful age poorly, and require
by Ygg2 5y ago
The ONLY lib missing from stdlib.
Is the time library.
Maybe unified interface to work with DB.
Cryptographic functions while useful age poorly, and require constant change.
Serde while extremely useful won't fit every usecase. Sometimes you want something smaller or faster.
Http(s) clients also tend to age poorly. Python also had http client/server in std lib that aged like warm milk.
For a thing to be in std, it needs to be imo something you don't want implented in several different ways. Something that is essentially solved and will change very little over time.
- pjmlp 5y agoAnd error handling, async runtime,...
- Ygg2 5y agoI thought that was being added (error handling). Async runtime is neat, but it tends to be more trouble than it's worth. And I don't think any design has emerged as universal way to deal with it. Time however has/should have a single representation.
- pjmlp 5y agoIt is being added, but not yet there in 2021 edition. Without a proper async runtime it is very hard to write portable asynchronous code, as each library is tied to a specific runtime.
- dhosek 5y agoUnicode handling. There are two big projects on that front in the crate space, but this is, for me at least, the biggest gap in the std lib (but then I'm writing a text processing/formatting system so it matters a lot to me).
- Ygg2 5y agoI don't think proper Unicode handling is a thing that can be solved universally. Do you need it for formatting, to count characters, for currency extraction, time formatting, etc.
- dhosek 5y agoAt the very least some basic things like collation and normalization should be part of the String class. I think character counting would also be a useful thing (and given the ASCII-art formatting of error messages in rust, it's presumably part of the compiler's code already although there are plenty of bits of compiler code that aren't exposed through stdlib like the ability to take a string like \u{e0) and convert that to á.
- bydlocoder 5y agoCertainly not DB handling. Databases have vastly different features sets and tightly coupled to I/O abstractions, so it's not uncommon to call database specific functions from a driver. Maybe a very stable first-party crate, but not stdlib.