1. 进入当前用户的 .cargo
目录 cd ~/.cargo
2.新建文件:config
3.编辑该文件,增加以下内容
[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"
1. 进入当前用户的 .cargo
目录 cd ~/.cargo
2.新建文件:config
3.编辑该文件,增加以下内容
[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"