Merge pull request #909 from qianfanguojin/qianfanguojin-dev

fix: add some detailed description
pull/913/head
Sunface 2 years ago committed by GitHub
commit cb7ddac0f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,7 +28,7 @@ export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_pr
#### 增加新的镜像地址
**首先是在 `crates.io` 之外添加新的注册服务**,在 `$HOME/.cargo/config.toml` 中添加以下内容:
**首先是在 `crates.io` 之外添加新的注册服务**,在 `$HOME/.cargo/config.toml` (如果文件不存在则手动创建一个)中添加以下内容:
```toml
[registries]
@ -49,6 +49,8 @@ time = { registry = "ustc" }
而第二种方式,则不需要修改 `Cargo.toml` 文件,**因为它是直接使用新注册服务来替代默认的 `crates.io`**。
`$HOME/.cargo/config.toml` 添加以下内容:
```toml
[source.crates-io]
replace-with = 'ustc'

Loading…
Cancel
Save