Skip to content

Commit 17bd90f

Browse files
committed
Fix multiple definition
[GitHub #215]
1 parent b391573 commit 17bd90f

File tree

2 files changed

+13
-18
lines changed

2 files changed

+13
-18
lines changed

src/recipe/lang/Rust/Cargo.c

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,40 @@
55
* Contributors : Mikachu2333 <[email protected]>
66
* |
77
* Created On : <2023-08-30>
8-
* Last Modified : <2025-06-17>
8+
* Last Modified : <2025-06-18>
99
* ------------------------------------------------------------*/
1010

1111
static SourceProvider_t pl_rust_cargo_upstream =
1212
{
1313
def_upstream, "https://crates.io/",
1414
{NotSkip, NA, NA, "https://crates.io/api/v1/crates/windows/0.58.0/download"}
15+
/* 跳转为: https://static.crates.io/crates/windows/windows-0.58.0.crate */
1516
};
1617

18+
// Ali: https://mirrors.aliyun.com/crates/api/v1/crates/windows/0.58.0/download
19+
// Ustc: https://crates-io.proxy.ustclug.org/api/v1/crates/windows/0.58.0/download
20+
1721
/**
18-
* @update 2025-06-17
22+
* @update 2025-06-18
23+
*
1924
* @note 以下都支持稀疏索引,我们换源时都将默认添加 `sparse+`
2025
* @note 链接末尾的 `/` 不能缺少
21-
* @note 经验证,南大的镜像同步失败,实际情况下多数packages不可用
22-
* @note 经验证,华中科大的镜像同步部分失败,较多常见packages不可用
26+
*
27+
* @note 2025-06-17: 经验证,南京大学、华中科大的镜像同步失败,实际情况下多数包都不可用
2328
*/
2429
static Source_t pl_rust_cargo_sources[] =
2530
{
2631
{&pl_rust_cargo_upstream, "https://github.com/rust-lang/crates.io-index/"},
2732
{&MirrorZ, "https://mirrors.cernet.edu.cn/crates.io-index/"},
33+
{&RsProxyCN, "https://rsproxy.cn/index/"},
34+
{&Ali, "https://mirrors.aliyun.com/crates.io-index/"},
2835
{&Zju, "https://mirrors.zju.edu.cn/crates.io-index/"},
36+
// {&Nju, "https://mirror.nju.edu.cn/git/crates.io-index.git/"},
2937
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/"},
3038
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/"},
3139
{&Bfsu, "https://mirrors.bfsu.edu.cn/crates.io-index/"},
3240
{&Ustc, "https://mirrors.ustc.edu.cn/crates.io-index/"},
33-
{&RsProxyCN, "https://rsproxy.cn/index/"},
34-
{&Ali, "https://mirrors.aliyun.com/crates.io-index/"},
41+
// {&Hust, "https://mirrors.hust.edu.cn/crates.io-index/"},
3542
{&Cqu, "https://mirrors.cqu.edu.cn/crates.io-index/"}
3643
};
3744
def_sources_n(pl_rust_cargo);

src/recipe/lang/Rust/common.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,4 @@ static MirrorSite_t RsProxyCN =
1111
{
1212
"rsproxycn", "RsProxy.cn", "字节跳动基础架构Dev Infra", "https://rsproxy.cn/",
1313
{NotSkip, NA, NA, "https://rsproxy.cn/api/v1/crates/windows/0.58.0/download"}
14-
},
15-
Ali =
16-
{
17-
"ali", "Ali OPSX Public", "阿里巴巴开源镜像站(公网)", "https://developer.aliyun.com/mirror/",
18-
{NotSkip, NA, NA, "https://mirrors.aliyun.com/crates/api/v1/crates/windows/0.58.0/download"}
1914
};
20-
21-
static MirrorSite_t Ustc =
22-
{
23-
"ustc", "USTC", "中国科学技术大学开源镜像站", "https://mirrors.ustc.edu.cn/",
24-
{NotSkip, NA, NA, "https://crates-io.proxy.ustclug.org/api/v1/crates/windows/0.58.0/download"}
25-
};
26-

0 commit comments

Comments
 (0)