3 ms·
> I wouldn't be surprised if there are actual written down criteria for std inclusion somewhere. I’m not aware of the current state, but in the old days, it wa
by steveklabnik 3y ago
> I wouldn't be surprised if there are actual written down criteria for std inclusion somewhere.
I’m not aware of the current state, but in the old days, it was roughly:
1. Is this useful in virtually every Rust program?
2. Is this something (data structures, mostly) that requires a lot of unsafe to implement?
3. Is this a vocabulary type?
Any of these is a slam dunk, anything else is more subjective.
- coldtea 3y ago>1. Is this useful in virtually every Rust program? That's too strict a criterion for a standard library!
- steveklabnik 3y agoSure, different people can have different opinions. But it’s also not literally true, in the sense that it’s only one of three criteria, but also because it’s more of a conceptual framing than something to be taken exactly. There’s just a high bar of usefulness required. You can tell that this isn’t literally true just by looking at the contents of the standard library.