#Rust Crates 镜像设置教程:
命令行中敲下指令$HOME/.cargo,进入到当前目录,一般目录中是没有config文件的,那么创建一个congfig文件不要有任何后缀,然后写入如下配置:
[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"
就可以享受飞一般的感觉了
特别感谢一下中科大-附上链接: Rust Crates 镜像使用帮助