Tiny std
Like a bad, probably buggy, tiny standard library for Linux.
When it's appropriate
If you are actually trying to do something solid, checkout Rustix or Relibc.
The regular stdlib is probably going to be better for almost all use-cases, since the only supported os is Linux you likely have an allocator present, although tiny-std will in my testing at least, produce a much smaller binary.
Supported platforms
- x86_64
- aarch64
Core features
- Run with or without alloc
- Minimal fs coverage
- Minimal spawn coverage
- Minimal unix socket support
Wanted features (in no particular order)
- An allocator, currently dl-malloc-rs can be rewritten no-libc pretty easily as is done here
- An RwLock, lifting that from rust-std is possible but the code footprint is pretty large
- Signal handling by signalfd
- Threading would be nice, but reinventing that particular wheel will likely explode code footprint and be hard to get right.
- io-uring fs operations
License
The project is licensed under MPL-2.0. A lot of code is directly lifted from rust-std, not mentioning the API which is meant to be similar/compatible as much as possible with rust-std, that's licensed under MIT and can be found here rust-std-MIT.