export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
export RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup
curl https://sh.rustup.rs -sSf | sh
source $HOME/.cargo/env
rustc -V ## 检查是否安装成功
【Rust】Linux安装Rust
最新推荐文章于 2025-05-27 15:58:05 发布