1、安装
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
2、设置环境变量
vim /etc/profile export PATH=$PATH:$HOME/.cargo/bin source /etc/profile
3、查看版本
rustc --version
4、升级版本
rustup update