第一个 Rust 程序本页总览第一个 Rust 程序 编写 Rust 程序 程序文件后缀名:rs 文件命名规范:hello_world.rs fn main() { println!("“Hello World");} 编译与运行 编译 rustc main.rs