cargo 国内镜像

0
(0)

在用户目录.cargo 下建立 config 文件,写入下面的内容:

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

这篇文章有用吗?

平均评分 0 / 5. 投票数: 0

到目前为止还没有投票!成为第一位评论此文章。

很抱歉,这篇文章对您没有用!

让我们改善这篇文章!

告诉我们我们如何改善这篇文章?