Crates.io | tiny-start |
lib.rs | tiny-start |
version | 0.1.3 |
source | src |
created_at | 2023-09-05 16:16:58.075372 |
updated_at | 2024-05-05 10:12:20.97199 |
description | Tiny start functions and symbol relocation |
homepage | https://github.com/MarcusGrass/tiny-std |
repository | https://github.com/MarcusGrass/tiny-std |
max_upload_size | |
id | 964503 |
size | 28,301 |
Like a bad, probably buggy, tiny standard library for Linux.
Some update to rustc between 2023-08-16 and 2023-08-17 caused miscompilations of
tiny-std resulting in infinite recursion on calls to memset
, which the compiler
inserts sometimes as part of optimization a bit more details here.
This was fixed in v0.1.1 with no API-changes by breaking code sensitive to rewrites into
a separate crate with a #![no_builtins]
.
Therefore, version 0.1.0
was yanked from crates.io.
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.
PGWM is the biggest project built with tiny-std
.
At present, the minimal WM builds statically pie-linked at 790K
.
Some examples of working setups for binary projects are in test-runners, both with and without an allocator/threading.
This project and any contributions are 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.