Rust config file: $HOME/.cargo/config
Proxy
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
[http]
proxy = "socks5://127.0.0.1:0000"
[https]
proxy = "socks5://127.0.0.1:0000"
Mirror
[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"
# Gitee
[source.gitee]
registry = "https://gitee.com/crates/crates.io-index.git"
# ByteDance
[source.rsproxy]
registry = "https://rsproxy.cn/crates.io-index"