1. helloworld.rs

fn main() {
    // Print text to the console
    println!("Hello World!");
}

 

2. Build

> rustc hello.rs

 

3. Run

> Helloworld
Hello World!

 

+ Recent posts