Skip to main content


$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"

# rustcc 1号源
[source.rustcc]
registry = "git://crates.rustcc.com/crates.io-index"

# rustcc 2号源
[source.rustcc2]
registry = "git://crates.rustcc.cn/crates.io-index"

# rustcc 3号源
[source.rustcc3]
registry = "https://code.aliyun.com/rustcc/crates.io-index.git"

# 清华大学
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"

# 中国科学技术大学
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"

# 上海交通大学
[source.sjtu]
registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index"

# gitee
[source.gitee]
registry = "https://gitee.com/crates/crates.io-index.git"

# lightsing
[source.lightsing]
registry = "https://crates.lightsing.me/crates.io-index"