rust 安装一直是一个非常慢的事情,找到了一种加速安装的方法
export RUSTUP_DIST_SERVER=""
export RUSTUP_UPDATE_ROOT="/rustup"
curl -sSf | sh
crates代理
代理一:
[source.crates-io]
replace-with = "rustcc"
[source.rustcc]
registry = ""
代理二:
[source.crates-io]
replace-with = 'ustc'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
代理三:
# Put the content into ${HOME}/.cargo/config
[source.crates-io]
registry = ""
# replace with your favourite mirror
replace-with = 'sjtu'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
[source.sjtu]
registry = ""
[source.rustcc]
registry = ""
代理四:
[source.crates-io]
replace-with = 'tuna'
[source.tuna]
registry = ""
转:
https://blog.hellojukay.cn/2020/03/06/20200307/
https://blog.hellojukay.cn/2020/03/24/20200325/
阅读(2112) | 评论(0) | 转发(0) |