目录 安装 管理和配置工具 项目管理 类型推断 格式输出 位置参数 格式化文本 命名参数 安装 不管OS是否带有rust,都应使用rustup来安装rust linux/freebsd curl https://sh.rustup.rs -sSf | sh windows https://www.rust-lang.org/tools/install windows下建议使用GNU的编译链接库,不使用microsoft的VC++运行库。