Skip to content

Commit 02e0062

Browse files
committed
crates.io-index: Add registries.ustc
mirrorz-org/mirrorz-help#190
1 parent b73eff6 commit 02e0062

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/crates.io-index.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ replace-with = 'ustc'
1818

1919
[source.ustc]
2020
registry = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/"
21+
22+
[registries.ustc]
23+
index = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/"
2124
```
2225

2326
!!! note
@@ -35,6 +38,9 @@ replace-with = 'ustc'
3538
3639
[source.ustc]
3740
registry = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/"
41+
42+
[registries.ustc]
43+
index = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/"
3844
EOF
3945
```
4046

@@ -59,7 +65,12 @@ EOF
5965

6066
!!! warning
6167

62-
`cargo search` 无法使用镜像。
68+
`cargo search` 与 `cargo info` 命令需要添加 `--registry ustc` 参数,例如:
69+
70+
```console
71+
cargo search --registry ustc reqwest
72+
cargo info --registry ustc reqwest
73+
```
6374

6475
!!! warning
6576

0 commit comments

Comments
 (0)