22 * SPDX-License-Identifier: GPL-3.0-or-later
33 * ------------------------------------------------------------*/
44
5- #define RAWSTR_pl_rust_cargo_default_download_url "https://static.crates.io/crates/windows/windows-0.58.0 .crate"
6- #define RAWSTR_pl_rust_cargo_custom_default_download_url "api/v1/crates/windows/0.58.0 /download"
5+ #define PL_Rust_cargo_default_download_url "https://static.crates.io/crates/windows/windows-0.62.2 .crate"
6+ #define PL_Rust_cargo_custom_download_url "api/v1/crates/windows/0.62.2 /download"
77
88def_target (pl_rust_cargo , "rust/cargo/crate/crates" );
99
@@ -13,8 +13,8 @@ pl_rust_cargo_prelude (void)
1313 chef_prep_this (pl_rust_cargo , gsr );
1414
1515 chef_set_created_on (this , "2023-08-30" );
16- chef_set_last_updated (this , "2025-12-30 " );
17- chef_set_sources_last_updated (this , "2025-12-30 " );
16+ chef_set_last_updated (this , "2025-12-31 " );
17+ chef_set_sources_last_updated (this , "2025-12-31 " );
1818
1919 chef_set_chef (this , NULL );
2020 chef_set_cooks (this , 2 , "@Mikachu2333" , "@ccmywish" );
@@ -26,26 +26,30 @@ pl_rust_cargo_prelude (void)
2626
2727
2828 // 以下都支持稀疏索引,我们换源时都将默认添加 `sparse+`。链接末尾的 `/` 不能缺少
29- // 2025-12-29: 许多镜像站的 dl 字段指向 static.crates.io,因此测速链接也指向 static.crates.io,原api失效
29+ /**
30+ * @warning 2025-12-29:
31+ * 许多镜像站的 dl 字段指向 static.crates.io,因此测速链接也指向 static.crates.io,原API失效
32+ * 见: https://github.com/RubyMetric/chsrc/pull/330
33+ */
3034 def_sources_begin ()
31- {& UpstreamProvider , "https://crates.io/" , RAWSTR_pl_rust_cargo_default_download_url },
32- {& MirrorZ , "https://mirrors.cernet.edu.cn/crates.io-index/" , RAWSTR_pl_rust_cargo_default_download_url },
33- {& RsProxyCN , "https://rsproxy.cn/index/" , "https://rsproxy.cn/" RAWSTR_pl_rust_cargo_custom_default_download_url },
34- {& Ali , "https://mirrors.aliyun.com/crates.io-index/" , "https://mirrors.aliyun.com/crates/" RAWSTR_pl_rust_cargo_custom_default_download_url },
35- {& Zju , "https://mirrors.zju.edu.cn/crates.io-index/" , RAWSTR_pl_rust_cargo_default_download_url },
35+ {& UpstreamProvider , "https://crates.io/" , PL_Rust_cargo_default_download_url },
36+ {& MirrorZ , "https://mirrors.cernet.edu.cn/crates.io-index/" , PL_Rust_cargo_default_download_url },
37+ {& RsProxyCN , "https://rsproxy.cn/index/" , "https://rsproxy.cn/" PL_Rust_cargo_custom_download_url },
38+ {& Ali , "https://mirrors.aliyun.com/crates.io-index/" , "https://mirrors.aliyun.com/crates/" PL_Rust_cargo_custom_download_url },
39+ {& Zju , "https://mirrors.zju.edu.cn/crates.io-index/" , PL_Rust_cargo_default_download_url },
3640
3741 /* 注释原因: (2025-06-17) 镜像同步失败,多数包都不可用 */
3842 // {&Nju, "https://mirror.nju.edu.cn/git/crates.io-index.git/", FeedByPrelude},
3943
4044 {& Sjtug_Zhiyuan , "https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/" , "https://mirror.sjtu.edu.cn/crates.io/crates/windows/windows-0.58.0.crate" },
41- {& Tuna , "https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/" ,RAWSTR_pl_rust_cargo_default_download_url },
42- {& Bfsu , "https://mirrors.bfsu.edu.cn/crates.io-index/" , RAWSTR_pl_rust_cargo_default_download_url },
43- {& Ustc , "https://mirrors.ustc.edu.cn/crates.io-index/" , "https://crates-io.proxy.ustclug.org/" RAWSTR_pl_rust_cargo_custom_default_download_url },
45+ {& Tuna , "https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/" ,PL_Rust_cargo_default_download_url },
46+ {& Bfsu , "https://mirrors.bfsu.edu.cn/crates.io-index/" , PL_Rust_cargo_default_download_url },
47+ {& Ustc , "https://mirrors.ustc.edu.cn/crates.io-index/" , "https://crates-io.proxy.ustclug.org/" PL_Rust_cargo_custom_download_url },
4448
4549 /* 注释原因: (2025-06-17) 镜像同步失败,多数包都不可用 */
4650 // {&Hust, "https://mirrors.hust.edu.cn/crates.io-index/", FeedByPrelude},
4751
48- {& Cqu , "https://mirrors.cqu.edu.cn/crates.io-index/" , RAWSTR_pl_rust_cargo_default_download_url }
52+ {& Cqu , "https://mirrors.cqu.edu.cn/crates.io-index/" , PL_Rust_cargo_default_download_url }
4953 def_sources_end ()
5054
5155}
0 commit comments