Update Cargo upstream

This commit is contained in:
Aoran Zeng 2024-12-18 20:30:42 +08:00
parent db843855b7
commit 6050b617aa
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 17 additions and 7 deletions

View File

@ -40,13 +40,16 @@ typedef SourceProvider_t MirrorSite_t;
SourceProvider_t UpstreamProvider =
{
/* 引入新的上游默认源时,请使下面第一行的前三个字段保持不变,只添加第四个字段 */
/* 引入新的上游默认源时,请使下面第一行的前三个字段保持不变,只添加第四个字段,可使用 def_upstream 宏 */
"upstream", "Upstream", "上游默认源", NULL,
/* 引入新的上游默认源时,请完全修改下面这个结构体 */
/* 引入新的上游默认源时,请完全修改下面这个结构体,可使用 def_need_measure_info 宏 */
{SKIP, "URL未知,邀您参与贡献!", "URL unknown, welcome to contribute!", NULL}
},
};
UserDefinedProvider =
#define def_upstream "upstream", "Upstream", "上游默认源"
#define def_need_measure_info {SKIP, "缺乏较大的下载对象,邀您参与贡献!", "Lack of large object URL, welcome to contribute!", NULL}
SourceProvider_t UserDefinedProvider =
{
"user", "用户自定义", "用户自定义", NULL,
{SKIP, "用户自定义源不测速", "SKIP for user-defined source", NULL}

View File

@ -3,18 +3,25 @@
* -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org>
* |
* Created On : <2023-08-30>
* Last Modified : <2024-10-02>
* Last Modified : <2024-12-18>
* ------------------------------------------------------------*/
static SourceProvider_t pl_rust_cargo_upstream =
{
def_upstream, "https://crates.io/",
def_need_measure_info
};
/**
* @update 2024-10-02
* @update 2024-12-18
* @note `sparse+`
* @note `/`
*/
static Source_t pl_rust_cargo_sources[] =
{
{&UpstreamProvider, "https://index.crates.io/"}, // @help 是这个吗?
{&pl_rust_cargo_upstream, "https://index.crates.io/"}, // @help 是这个吗?
{&MirrorZ, "https://mirrors.cernet.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/"},