Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Record] Blocked at "Updating crates.io index" #1

Open
Xing-He opened this issue Dec 10, 2021 · 0 comments
Open

[Record] Blocked at "Updating crates.io index" #1

Xing-He opened this issue Dec 10, 2021 · 0 comments

Comments

@Xing-He
Copy link
Member

Xing-He commented Dec 10, 2021

~/.cargo 目录下新增 config 文件,并修改 registry 内容

[source.crates-io]
# registry = "https://github.com/rust-lang/crates.io-index"

# 替换成你偏好的镜像源
replace-with = 'ustc'
# replace-with = 'sjtu'

# 清华大学
[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"

# 如果所处的环境中不允许使用 git 协议,可以把上述地址改为
# registry = "https://mirrors.ustc.edu.cn/crates.io-index"

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

# rustcc社区
[source.rustcc]
registry = "git://crates.rustcc.cn/crates.io-index"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant