Tiny_std for bare metal programming


#1

I want to write low memory footprint code, and I tried #[no_std], and got excited “Hello world” is now 8 KB, down from 370KB (I do dynamically link into libc though). Is there any way to include a bare minimum library less than std? I just need essentials like std::mem::size_of and std::mem::transmute etc.

Steve


#2

You might want to look at the core library: https://doc.rust-lang.org/core/


#3

Yes, those functions are in core as well. Core has a lot of stuff!