Skip to content

Commit d48bbc9

Browse files
committed
Update sources
1 parent a9cb459 commit d48bbc9

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

src/recipe/lang/JavaScript/common.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ pl_js_group_prelude (void)
3333
chef_allow_user_define(this);
3434

3535
def_sources_begin()
36-
{&UpstreamProvider, "https://registry.npmjs.org/", FeedByPrelude}, /* @note 根据 pnpm 官网,有最后的斜线 */
37-
{&NpmMirror, "https://registry.npmmirror.com", FeedByPrelude},
38-
{&Huawei, "https://mirrors.huaweicloud.com/repository/npm/", FeedByPrelude},
39-
{&Tencent, "https://mirrors.cloud.tencent.com/npm/", FeedByPrelude}
36+
{&UpstreamProvider, "https://registry.npmjs.org/", FeedByPrelude}, /* @note 根据 pnpm 官网,有最后的斜线 */
37+
{&NpmMirror, "https://registry.npmmirror.com", FeedByPrelude},
38+
{&Huawei, "https://mirrors.huaweicloud.com/repository/npm/", FeedByPrelude},
39+
{&Tencent, "https://mirrors.cloud.tencent.com/npm/", FeedByPrelude}
4040
def_sources_end()
4141

4242
// 29MB 大小

src/recipe/lang/Rust/Cargo.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,27 @@ pl_rust_cargo_prelude (void)
2828

2929
// 以下都支持稀疏索引,我们换源时都将默认添加 `sparse+`。链接末尾的 `/` 不能缺少
3030
def_sources_begin()
31-
{&UpstreamProvider, "https://crates.io/", "https://crates.io/api/v1/crates/windows/0.58.0/download"},
32-
{&MirrorZ, "https://mirrors.cernet.edu.cn/crates.io-index/", DelegateToMirror},
33-
{&RsProxyCN, "https://rsproxy.cn/index/", DelegateToMirror},
34-
{&Ali, "https://mirrors.aliyun.com/crates.io-index/", FeedByPrelude},
35-
{&Zju, "https://mirrors.zju.edu.cn/crates.io-index/", DelegateToMirror},
31+
{&UpstreamProvider, "https://crates.io/", FeedByPrelude},
32+
{&MirrorZ, "https://mirrors.cernet.edu.cn/crates.io-index/", FeedByPrelude},
33+
{&RsProxyCN, "https://rsproxy.cn/index/", FeedByPrelude},
34+
{&Ali, "https://mirrors.aliyun.com/crates.io-index/", FeedByPrelude},
35+
{&Zju, "https://mirrors.zju.edu.cn/crates.io-index/", FeedByPrelude},
3636

3737
/* 注释原因: (2025-06-17) 镜像同步失败,多数包都不可用 */
38-
// {&Nju, "https://mirror.nju.edu.cn/git/crates.io-index.git/", DelegateToMirror},
38+
// {&Nju, "https://mirror.nju.edu.cn/git/crates.io-index.git/", FeedByPrelude},
3939

40-
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/", DelegateToMirror},
41-
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/", DelegateToMirror},
42-
{&Bfsu, "https://mirrors.bfsu.edu.cn/crates.io-index/", DelegateToMirror},
43-
44-
{&Ustc, "https://mirrors.ustc.edu.cn/crates.io-index/",
45-
"https://crates-io.proxy.ustclug.org/api/v1/crates/windows/0.58.0/download"},
40+
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/", FeedByPrelude},
41+
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/",FeedByPrelude},
42+
{&Bfsu, "https://mirrors.bfsu.edu.cn/crates.io-index/", FeedByPrelude},
43+
{&Ustc, "https://mirrors.ustc.edu.cn/crates.io-index/", FeedByPrelude},
4644

4745
/* 注释原因: (2025-06-17) 镜像同步失败,多数包都不可用 */
48-
// {&Hust, "https://mirrors.hust.edu.cn/crates.io-index/", DelegateToMirror},
46+
// {&Hust, "https://mirrors.hust.edu.cn/crates.io-index/", FeedByPrelude},
4947

50-
{&Cqu, "https://mirrors.cqu.edu.cn/crates.io-index/", DelegateToMirror}
48+
{&Cqu, "https://mirrors.cqu.edu.cn/crates.io-index/", FeedByPrelude}
5149
def_sources_end()
50+
51+
chsrc_set_sources_speed_measure_url_with_postfix (this, "api/v1/crates/windows/0.58.0/download");
5252
}
5353

5454

0 commit comments

Comments
 (0)