77 * Last Modified : <2024-10-02>
88 * ------------------------------------------------------------*/
99
10- static MirrorSite
11- RsProxyCN = {"rsproxycn" , "RsProxy.cn" , "字节跳动基础架构Dev Infra" , "https://rsproxy.cn/" , NULL };
12-
1310/**
1411 * @update 2024-10-02
1512 * @note 以下都支持稀疏索引,我们换源时都将默认添加 `sparse+`
1613 * @note 链接末尾的 `/` 不能缺少
1714 */
1815static SourceInfo
19- pl_rust_sources [] = {
16+ pl_rust_cargo_sources [] = {
2017 {& Upstream , "https://index.crates.io/" }, // @help 是这个吗?
2118 {& MirrorZ , "https://mirrors.cernet.edu.cn/crates.io-index/" },
2219 {& Sjtug_Zhiyuan , "https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/" },
@@ -26,14 +23,14 @@ pl_rust_sources[] = {
2623 {& RsProxyCN , "https://rsproxy.cn/index/" },
2724 {& Hust , "https://mirrors.hust.edu.cn/crates.io-index/" }
2825};
29- def_sources_n (pl_rust );
26+ def_sources_n (pl_rust_cargo );
3027
3128
3229/**
33- * chsrc get rust
30+ * chsrc get cargo
3431 */
3532void
36- pl_rust_getsrc (char * option )
33+ pl_rust_cargo_getsrc (char * option )
3734{
3835 chsrc_view_file ("~/.cargo/config.toml" );
3936}
@@ -43,12 +40,12 @@ pl_rust_getsrc (char *option)
4340 * @consult https://mirrors.tuna.tsinghua.edu.cn/help/crates.io-index/
4441 * @consult https://help.mirrors.cernet.edu.cn/crates.io-index
4542 *
46- * chsrc set rust
43+ * chsrc set cargo
4744 */
4845void
49- pl_rust_setsrc (char * option )
46+ pl_rust_cargo_setsrc (char * option )
5047{
51- chsrc_yield_source_and_confirm (pl_rust );
48+ chsrc_yield_source_and_confirm (pl_rust_cargo );
5249
5350 const char * file = xy_strjoin (3 ,
5451 "[source.crates-io]\n"
@@ -64,17 +61,17 @@ pl_rust_setsrc (char *option)
6461
6562
6663/**
67- * chsrc reset rust
64+ * chsrc reset cargo
6865 */
6966void
70- pl_rust_resetsrc (char * option )
67+ pl_rust_cargo_resetsrc (char * option )
7168{
72- pl_rust_setsrc (SetsrcType_Reset );
69+ pl_rust_cargo_setsrc (SetsrcType_Reset );
7370}
7471
7572
7673FeatInfo
77- pl_rust_feat (char * option )
74+ pl_rust_cargo_feat (char * option )
7875{
7976 FeatInfo fi = {0 };
8077
@@ -91,4 +88,4 @@ pl_rust_feat (char *option)
9188}
9289
9390
94- def_target_gsrf (pl_rust );
91+ def_target_gsrf (pl_rust_cargo );
0 commit comments