Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions src/recipe/lang/Rust/rustup.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,32 @@
* | Mikachu2333 <mikachu.23333@zohomail.com>
* |
* Created On : <2024-10-02>
* Last Modified : <2025-06-19>
* Last Modified : <2025-08-07>
* ------------------------------------------------------------*/

// Size: 20MB
#define Rustup_Speed_URL_Suffix "/dist/2025-06-26/cargo-1.88.0-x86_64-unknown-illumos.tar.gz"

static SourceProvider_t pl_rust_binary_upstream =
{
def_upstream, "https://www.rust-lang.org/",
def_need_measure_info
};

/**
* @update 2025-06-17
* @update 2025-08-07
*/
static Source_t pl_rust_rustup_sources[] = {
{&pl_rust_binary_upstream, "https://static.rust-lang.org", NULL},
{&MirrorZ, "https://mirrors.cernet.edu.cn/rustup", NULL},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rustup", NULL},
{&Ustc, "https://mirrors.ustc.edu.cn/rust-static", NULL},
{&Nju, "https://mirror.nju.edu.cn/rustup", NULL},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rust-static", NULL},
{&Zju, "https://mirrors.zju.edu.cn/rustup", NULL},
{&Iscas, "https://mirror.iscas.ac.cn/rustup", NULL},
{&Ali, "https://mirrors.aliyun.com/rustup", NULL},
{&RsProxyCN, "https://rsproxy.cn"}};
{&pl_rust_binary_upstream, "https://static.rust-lang.org", "https://static.rust-lang.org" Rustup_Speed_URL_Suffix},
{&MirrorZ, "https://mirrors.cernet.edu.cn/rustup", NULL},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rustup", "https://mirrors.tuna.tsinghua.edu.cn/rustup" Rustup_Speed_URL_Suffix},
{&Ustc, "https://mirrors.ustc.edu.cn/rust-static", "https://mirrors.ustc.edu.cn/rust-static" Rustup_Speed_URL_Suffix},
{&Nju, "https://mirror.nju.edu.cn/rustup", "https://mirror.nju.edu.cn/rustup" Rustup_Speed_URL_Suffix},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rust-static", "https://mirror.sjtu.edu.cn/rust-static" Rustup_Speed_URL_Suffix},
{&Zju, "https://mirrors.zju.edu.cn/rustup", "https://mirrors.zju.edu.cn/rustup" Rustup_Speed_URL_Suffix},
{&Iscas, "https://mirror.iscas.ac.cn/rustup", "https://mirror.iscas.ac.cn/rustup" Rustup_Speed_URL_Suffix},
{&Ali, "https://mirrors.aliyun.com/rustup", "https://mirrors.aliyun.com/rustup" Rustup_Speed_URL_Suffix},
{&RsProxyCN, "https://rsproxy.cn", "https://rsproxy.cn" Rustup_Speed_URL_Suffix}};
def_sources_n(pl_rust_rustup);


Expand Down
Loading