首页 > 其他 > 详细

Cargo 依赖下载慢、设置镜像

时间:2021-01-30 17:57:05      阅读:52      评论:0      收藏:0      [点我收藏+]

在用户目录.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"
# 如果所处的环境中不允许使用 git 协议,可以把上面的地址改为
registry = "https://mirrors.ustc.edu.cn/crates.io-index"

参考:https://zhuanlan.zhihu.com/p/74875840?from_voters_page=true

Cargo 依赖下载慢、设置镜像

原文:https://www.cnblogs.com/lautung/p/14348780.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!