Rust crates.io换源
问题
Cargo fails with “spurious network error: The operation timed out” on Windows
windows
修改C:\Users\***\.cargo\config
***为你的当前用户名
没有该文件,就新建该文件
添加以下文件内容:
[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"