diff --git a/src/recipe/lang/Rust/Cargo.c b/src/recipe/lang/Rust/Cargo.c index ff7ccc1..b3ee10e 100644 --- a/src/recipe/lang/Rust/Cargo.c +++ b/src/recipe/lang/Rust/Cargo.c @@ -11,19 +11,20 @@ static SourceProvider_t pl_rust_cargo_upstream = { def_upstream, "https://crates.io/", - def_need_measure_info + {NotSkip, NA, NA, "https://crates.io/api/v1/crates/windows/0.58.0/download"} }; /** * @update 2025-06-17 * @note 以下都支持稀疏索引,我们换源时都将默认添加 `sparse+` * @note 链接末尾的 `/` 不能缺少 + * @note 经验证,南大的镜像同步失败,实际情况下多数packages不可用 + * @note 经验证,华中科大的镜像同步部分失败,较多常见packages不可用 */ static Source_t pl_rust_cargo_sources[] = { {&pl_rust_cargo_upstream, "https://github.com/rust-lang/crates.io-index/"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/crates.io-index/"}, - {&Nju, "https://mirror.nju.edu.cn/git/crates.io-index.git/"}, {&Zju, "https://mirrors.zju.edu.cn/crates.io-index/"}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/"}, @@ -31,7 +32,6 @@ static Source_t pl_rust_cargo_sources[] = {&Ustc, "https://mirrors.ustc.edu.cn/crates.io-index/"}, {&RsProxyCN, "https://rsproxy.cn/index/"}, {&Ali, "https://mirrors.aliyun.com/crates.io-index/"}, - {&Hust, "https://mirrors.hust.edu.cn/crates.io-index/"}, {&Cqu, "https://mirrors.cqu.edu.cn/crates.io-index/"} }; def_sources_n(pl_rust_cargo); diff --git a/src/recipe/lang/Rust/common.h b/src/recipe/lang/Rust/common.h index 4aef9b6..357c3ac 100644 --- a/src/recipe/lang/Rust/common.h +++ b/src/recipe/lang/Rust/common.h @@ -10,5 +10,17 @@ static MirrorSite_t RsProxyCN = { "rsproxycn", "RsProxy.cn", "字节跳动基础架构Dev Infra", "https://rsproxy.cn/", - {SKIP, ToFill, ToFill, NULL} + {NotSkip, NA, NA, "https://rsproxy.cn/api/v1/crates/windows/0.58.0/download"} +}, +Ali = +{ + "ali", "Ali OPSX Public", "阿里巴巴开源镜像站(公网)", "https://developer.aliyun.com/mirror/", + {NotSkip, NA, NA, "https://mirrors.aliyun.com/crates/api/v1/crates/windows/0.58.0/download"} }; + +static MirrorSite_t Ustc = +{ + "ustc", "USTC", "中国科学技术大学开源镜像站", "https://mirrors.ustc.edu.cn/", + {NotSkip, NA, NA, "https://crates-io.proxy.ustclug.org/api/v1/crates/windows/0.58.0/download"} +}; +