解决 rust 依赖加载太慢的问题。
配置文件
文件路径:用户名/.cargo/config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| [source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
# 指定镜像
replace-with = 'ustc'
# rustcc 1号源
#[source.rustcc]
#registry = "git://crates.rustcc.com/crates.io-index"
# rustcc 2号源
[source.rustcc2]
registry = "git://crates.rustcc.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"
# 上海交通大学
[source.sjtu]
registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index"
# 阿里云
[source.rustcc]
registry = "https://code.aliyun.com/rustcc/crates.io-index.git"
[http]
check-revoke = false
[net]
git-fetch-with-cli = true
|