Search code examples
operating-systemrustbootable

make a bootable hello world program in rust


I have recently come across Rust and found that one can easily write system code in Rust without touching assembly.
I just want to make a bootable hello world program out of my hello.rs code:

fn main() {
    println!("Hello World");
}

Is there a way to make this Rust code bootable?


Solution

  • There is an blog about Writing an OS in Rust, where first steps are about booting and printing some stuff to screen using only Rust.

    It's an advanced topic, so I wouldn't recommand starting with writing an OS, execpt if you want to discover how an OS work.