Rust学习笔记 Hello World 生成一个新的工程 cargo new hello-rust cd hello-rust cargo run 添加依赖,在Cargo.toml中添加一下信息: [dependencies] ferris-says = "0.3.1" 安装依赖 cargo build 修改main.rs的内容为: