rust

The Hello, World! example in Rust

main.rs

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

Compiling:

> rustc main.rs

generates main.exe on Windows and main on Linux or macOS Running:

> .\main.exe  #Windows
$ ./main      #Linux/macOS

Takeaways

Next

The Cargo tool