在 CentOS 上配置 Rust 的完整步骤
一 准备系统与依赖
二 安装 Rust 工具链
三 配置国内镜像源(可选,提升下载速度)
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'ustc'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
四 快速验证与第一个项目
五 常见问题与进阶