mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-03-10 12:35:17 +08:00
Update Cargo
upstream
This commit is contained in:
parent
db843855b7
commit
6050b617aa
@ -40,13 +40,16 @@ typedef SourceProvider_t MirrorSite_t;
|
|||||||
|
|
||||||
SourceProvider_t UpstreamProvider =
|
SourceProvider_t UpstreamProvider =
|
||||||
{
|
{
|
||||||
/* 引入新的上游默认源时,请使下面第一行的前三个字段保持不变,只添加第四个字段 */
|
/* 引入新的上游默认源时,请使下面第一行的前三个字段保持不变,只添加第四个字段,可使用 def_upstream 宏 */
|
||||||
"upstream", "Upstream", "上游默认源", NULL,
|
"upstream", "Upstream", "上游默认源", NULL,
|
||||||
/* 引入新的上游默认源时,请完全修改下面这个结构体 */
|
/* 引入新的上游默认源时,请完全修改下面这个结构体,可使用 def_need_measure_info 宏 */
|
||||||
{SKIP, "URL未知,邀您参与贡献!", "URL unknown, welcome to contribute!", NULL}
|
{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,
|
"user", "用户自定义", "用户自定义", NULL,
|
||||||
{SKIP, "用户自定义源不测速", "SKIP for user-defined source", NULL}
|
{SKIP, "用户自定义源不测速", "SKIP for user-defined source", NULL}
|
||||||
|
@ -3,18 +3,25 @@
|
|||||||
* -------------------------------------------------------------
|
* -------------------------------------------------------------
|
||||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Contributors : Nil Null <nil@null.org>
|
* Contributors : Nil Null <nil@null.org>
|
||||||
|
* |
|
||||||
* Created On : <2023-08-30>
|
* 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 以下都支持稀疏索引,我们换源时都将默认添加 `sparse+`
|
||||||
* @note 链接末尾的 `/` 不能缺少
|
* @note 链接末尾的 `/` 不能缺少
|
||||||
*/
|
*/
|
||||||
static Source_t pl_rust_cargo_sources[] =
|
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/"},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/crates.io-index/"},
|
||||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.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/"},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/"},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user