3 ms·
I hope not. With a healthy crate ecosystem, std should be as small as possible (without being too small). It makes sense for std to contain: - Types that can
by josephg 8y ago
I hope not.
With a healthy crate ecosystem, std should be as small as possible (without being too small).
It makes sense for std to contain:
- Types that can't easily be put in a module (eg the `Fn` trait)
- Types needed for cross-project interoperability (like `TcpStream` or `Future`). Having these in std helps prevent ecosystem fragmentation.
- Stuff that gets used in most non-trivial projects (eg `Box`, `Vec`, `println!`)
Everything else belongs in a crate, where it won't bloat up the size of rust's standard library for everyone in perpetuity. `scan!` looks great; but I expect it'll be used in less than 1% of projects. There's no shame in keeping it in a crate - thats what they're for!