Rust Attitude

Rust nostd nolibc

What is it about ? Last time we created a binary without stdlib in rust. But we still had a dependency on libc. If we really want to go baremetal, we need to remove this dependency. This time we need to dig into how a binary is started. Here I’m focusing on Linux, but the usual target for this kind of project is not Linux. For your specific case, you may need to look for documentation on how to run a binary.

Rust nostd

What is it ? I always wondered what the minimal nostd rust code was. Why leave the stdlib world? It provides so many features. If you don’t know which ones, just take a look at core and imagine that stdlib provides everything that you usually use but is not there. But if you are in the business of writing something barebone, like a kernel, an embedded component, or the stdlib itself, you don’t have the luxury it provides.