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"