95 字
1 分钟
Cargo换源
~/.cargo/config.toml
# 替换成你偏好的镜像源#replace-with = 'tuna'# replace-with = 'ustc'#replace-with = 'zju'
# 源地址[source.crates-io]# registry = "https://github.com/rust-lang/crates.io-index"replace-with = 'rsproxy-sparse'
#字节跳动[source.rsproxy]registry = "https://rsproxy.cn/crates.io-index"[source.rsproxy-sparse]registry = "sparse+https://rsproxy.cn/index/"[registries.rsproxy]index = "https://rsproxy.cn/crates.io-index"
# 清华大学[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"registry = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/"
# 浙江大学[source.zju]registry = "https://mirrors.zju.edu.cn/git/crates.io-index.git"
# 上海交通大学[source.sjtu]registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index"分享文章
生成精美分享图或复制链接,与更多人分享本文。
继续阅读
换条路线
从其他文章中稳定抽取
镜像和代理从入门到入土
连载中最后更新于 ,距今已过 748 天
部分内容可能已过时