Rustup安装
依赖环境 Rustup 安装:
1
2
3
4
5
6
7
8
mkdir -p $HOME/.cargo
# vim $HOME/.cargo/config
[source.crates-io]
replace-with = 'ustc'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
1
2
3
4
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# vim ~/.bashrc
export PATH=$PATH:$HOME/.cargo/bin
This post is licensed under CC BY 4.0 by the author.