[source.crates-io] registry = "https://github.com/rust-lang/crates.io-index" # 指定镜像 replace-with = 'tuna' # 清华大学 [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" # rustcc社区 [source.rustcc] registry = "https://code.aliyun.com/rustcc/crates.io-index.git"
写入到 `C:\Users\${currentUser}\.cargo\config`.
原地址: https://www.cnblogs.com/a208606/p/16747393.html
标签:index,git,https,配置,crates,source,io,加速,rust From: https://www.cnblogs.com/whm-blog/p/17103340.html