rust hello world Filename: main.rs : fn main() { println!("Hello, world!"); } On Linux or macOS: $ rustc main.rs $ ./main Hello, world! On Windows: > rustc main.rs > .\main.exe Hello, world!