make a bootable hello world program in rust

703 views Asked by At

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?

1

There are 1 answers

0
Grégory OBANOS On BEST ANSWER

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.