14
14
+ [ https://github.com/kaisery/trpl-zh-cn ] ( https://github.com/kaisery/trpl-zh-cn )
15
15
+ [ http://doc.rust-lang.org ] ( http://doc.rust-lang.org )
16
16
+ [ https://docs.rs ] ( https://docs.rs )
17
+ + [ https://rustup.rs ] ( https://rustup.rs )
17
18
+ [ https://github.com/anowell/are-we-learning-yet ] ( https://github.com/anowell/are-we-learning-yet )
18
19
+ [ https://github.com/areweguiyet/areweguiyet ] ( https://github.com/areweguiyet/areweguiyet )
19
20
+ [ https://github.com/rust-gamedev/arewegameyet ] ( https://github.com/rust-gamedev/arewegameyet )
@@ -92,9 +93,19 @@ cargo rustc --release -- -Clink-args="-Wl,--subsystem,windows"
92
93
93
94
> ` rustup default stable-x86_64-pc-windows-gnu ` 使gnu(依赖于GNU/MinGW-w64)成为默认工具链
94
95
95
- + crates字节跳动镜像代理 [ https://rsproxy.cn ] ( https://rsproxy.cn )
96
+
97
+
98
+ ## 镜像代理
99
+
100
+ + [ https://rsproxy.cn ] ( https://rsproxy.cn )
101
+ + [ https://developer.aliyun.com/mirror/rustup ] ( https://developer.aliyun.com/mirror/rustup )
102
+ + [ https://mirrors.tuna.tsinghua.edu.cn/help/crates.io-index.git ] ( https://mirrors.tuna.tsinghua.edu.cn/help/crates.io-index.git )
103
+ + [ https://mirrors.sjtug.sjtu.edu.cn/docs/crates.io ] ( https://mirrors.sjtug.sjtu.edu.cn/docs/crates.io )
96
104
+ [ https://github.com/chanchancl/How-to-build-a-develop-environment-for-rust ] ( https://github.com/chanchancl/How-to-build-a-develop-environment-for-rust )
97
105
106
+
107
+ ### Rustup镜像
108
+
98
109
- Linux
99
110
100
111
``` bash
@@ -122,18 +133,23 @@ Set-ItemProperty -Path "Registry::HKEY_CURRENT_USER\Environment" -Name "RUSTUP_D
122
133
Set-ItemProperty -Path "Registry::HKEY_CURRENT_USER\Environment" -Name "RUSTUP_UPDATE_ROOT" -Value "https://mirrors.aliyun.com/rustup/rustup"
123
134
```
124
135
125
- - Cargo镜像加速
136
+
137
+ ### crates.io镜像
138
+
139
+
140
+ - Cargo配置
126
141
127
142
``` conf
128
143
# ~/.cargo/config
129
- # %USERPROFILE%.cargo\config
144
+ # %USERPROFILE%\ .cargo\config
130
145
[source.crates-io]
131
146
# 源码地址
132
147
registry = "https://github.com/rust-lang/crates.io-index"
133
148
# 指定镜像
134
149
#replace-with = 'sjtu'
135
150
#replace-with = 'ustc'
136
151
replace-with = 'rsproxy-sparse'
152
+ # 字节跳动
137
153
[source.rsproxy]
138
154
registry = "https://rsproxy.cn/crates.io-index"
139
155
[source.rsproxy-sparse]
@@ -142,19 +158,20 @@ registry = "sparse+https://rsproxy.cn/index/"
142
158
index = "https://rsproxy.cn/crates.io-index"
143
159
# 清华大学
144
160
[source.tuna]
145
- registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
161
+ #registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
162
+ registry = "sparse+https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/"
163
+ [registries.tuna]
164
+ index = "sparse+https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/"
146
165
# 中国科学技术大学
147
166
[source.ustc]
148
167
registry = "https://mirrors.ustc.edu.cn/crates.io-index"
149
168
#registry = "git://mirrors.ustc.edu.cn/crates.io-index"
150
169
# 上海交通大学
151
170
[source.sjtu]
152
- registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index"
153
- # rustcc社区
154
- [source.rustcc]
155
- registry = "git://crates.rustcc.cn/crates.io-index"
171
+ registry = "sparse+https://mirrors.sjtug.sjtu.edu.cn/crates.io-index"
172
+ # 阿里云
156
173
[source.aliyun]
157
- registry = "https://code .aliyun.com/rustcc/ crates.io-index"
174
+ registry = "sparse+ https://mirrors .aliyun.com/crates.io-index/ "
158
175
[net]
159
176
git-fetch-with-cli=true
160
177
[http]
0 commit comments