运行

主函数

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

文件后缀

.rs

编译

$ rustc main.rs

执行

$ main.exe