3 ms·
As makomk noted, you can't call OS from the OS itself. She probably had to throw away most of libstd like zero.rs does for Rust to work at this low level.
by Ygg2 13y ago
As makomk noted, you can't call OS from the OS itself. She probably had to throw away most of libstd like zero.rs does for Rust to work at this low level.
- jvns 13y agoYup, all the standard library. If you look at the top of main.rs [1], you'll see #[no_std] which means "don't use the standard library" Instead of the standard library, I use rust-core [2], which provides some of the standard library's features (like the ability to allocate memory). [1] https://github.com/jvns/puddle/blob/master/src/main.rs https://github.com/jvns/puddle/blob/master/src/main.rs [2] https://github.com/thestinger/rust-core https://github.com/thestinger/rust-core