语言基础本页总览基础 安装 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 苹果电脑可以 brew install rust 查看安装的版本 rustc --version 更新 rustup update Cargo 构建工具和包管理器 cargo build # 构建cargo run # 运行cargo test # 测试cargo doc # 构建文档cargo publish # 发布包cargo --version # 查看版本