From 4d41b1f34b39f14bdb86026a292f1f6bc2f15412 Mon Sep 17 00:00:00 2001 From: Yifan Xie <41330843+qianfanguojin@users.noreply.github.com> Date: Thu, 9 Jun 2022 20:21:32 +0800 Subject: [PATCH] fix: add some detailed description --- src/first-try/slowly-downloading.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/first-try/slowly-downloading.md b/src/first-try/slowly-downloading.md index def7437c..d4430a9f 100644 --- a/src/first-try/slowly-downloading.md +++ b/src/first-try/slowly-downloading.md @@ -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'