Skip to content

Commit 7a3492e

Browse files
committed
stash
1 parent 52a4784 commit 7a3492e

File tree

33 files changed

+427
-223
lines changed

33 files changed

+427
-223
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::env;
22

33
const TARGET_OVERRIDE_ENV: &str = "HOST_TRIPLE";
44
const EDITION_OVERRIDE_ENV: &str = "EDITION";
5-
const DEFAULT_EDITION: &str = "community";
5+
const DEFAULT_EDITION: &str = "test";
66
const FILES_TO_TRIGGER_REBUILD: &[&str] = &["locales/en.json", "locales/zh-CN.json"];
77

88
fn main() {

configuration.toml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ identifier = "xuanwu-rust"
66
# For GUI
77
home_page_url = 'https://xuanwu.beta.atomgit.com/'
88

9+
# Default download sources
910
rustup_dist_server = 'https://xuanwu.base.atomgit.com'
1011
rustup_update_root = 'https://xuanwu.base.atomgit.com/rustup'
1112
rim_dist_server = 'https://rust-mirror.obs.cn-north-4.myhuaweicloud.com'
12-
13-
[cargo]
14-
registry_name = 'xuanwu-sparse'
15-
registry_url = 'sparse+https://xuanwu.base.atomgit.com/index/'
13+
registry = { name = 'xuanwu-sparse', index = 'sparse+https://xuanwu.base.atomgit.com/index/' }
1614

1715
[locale.en-US]
1816
logo_text = "XuanWu"
@@ -27,8 +25,3 @@ vendor = "Rust 中国社区"
2725
product = "Rust 中国社区发行版"
2826
app_name = "Rust 安装管理器"
2927
content_source = "内容来源:Rust 中国社区,Rust 原生社区,第三方开源社区"
30-
31-
[override.bisheng]
32-
rustup_dist_server = 'https://rust-dist.obs.cn-north-4.myhuaweicloud.com/bisheng'
33-
rustup_update_root = 'https://xuanwu.base.atomgit.com/rustup'
34-
rim_dist_server = 'https://rust-mirror.obs.cn-north-4.myhuaweicloud.com'

locales/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"downloading_latest_manager": "downloading the latest manager release (version '%{version}')...",
5252
"downloading_rustup_init": "downloading rustup-init...",
5353
"duplicated_config_files": "duplicated config file detected at these locations:\n1. %{first}\n2. %{second}\nconfiguration of the first one will be used",
54+
"enforced_toolkit_config": "value of '%{key}' was enforced by the toolkit and cannot be changed",
5455
"enter_choice_below": "please enter the index of your choice below",
5556
"enter_path_or_url": "Enter Path or URL",
5657
"executables": "executables",

locales/zh-CN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"downloading_latest_manager": "正在下载最新管理工具 (版本 '%{version}')...",
5252
"downloading_rustup_init": "正在下载 rustup-init...",
5353
"duplicated_config_files": "检查到以下重复配置文件:\n1. %{first}\n2. %{second}\n将读取第一个文件",
54+
"enforced_toolkit_config": "'%{key}' 的值已由工具套件强制指定,无法被修改",
5455
"enter_choice_below": "请在下方输入选项序号",
5556
"enter_path_or_url": "输入路径或 URL",
5657
"executables": "可执行文件",

resources/toolkit-manifest/offline/bisheng.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11

22
# This file was automatically generated.
33
# 此文件是自动生成的.
4+
rustup-dist-server = "https://rust-dist.obs.cn-north-4.myhuaweicloud.com/bisheng"
5+
rustup-update-root = "https://xuanwu.base.atomgit.com/rustup"
46
name = "Rust 中国社区发行版 (毕昇)"
57
version = "bisheng v1.72.0"
68
edition = "bisheng"
79

8-
[rust]
10+
[cargo-registry]
11+
name = "xuanwu-sparse"
12+
index = "sparse+https://xuanwu.base.atomgit.com/index/"
13+
14+
[toolchain]
915
channel = "1.72.0"
1016
profile = "minimal"
1117
display-name = "Rust 官方工具"
@@ -15,7 +21,7 @@ optional-components = ["llvm-tools", "rust-analyzer"]
1521
group = "Rust 基础工具集"
1622
offline-dist-server = "toolchain"
1723

18-
[rust.rustup]
24+
[toolchain.rustup]
1925
x86_64-unknown-linux-gnu = "tools/rustup-init"
2026

2127
[tools.descriptions]

resources/toolkit-manifest/offline/community.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11

22
# This file was automatically generated.
33
# 此文件是自动生成的.
4+
rustup-dist-server = "https://xuanwu.base.atomgit.com/"
5+
rustup-update-root = "https://xuanwu.base.atomgit.com/rustup"
46
name = "Rust 中国社区发行版"
57
version = "stable v1.87.0"
68
edition = "community"
79

8-
[rust]
10+
[cargo-registry]
11+
name = "xuanwu-sparse"
12+
index = "sparse+https://xuanwu.base.atomgit.com/index/"
13+
14+
[toolchain]
915
channel = "1.87.0"
1016
profile = "minimal"
1117
display-name = "Rust 官方工具"
@@ -15,7 +21,7 @@ optional-components = ["llvm-tools", "rust-docs", "rust-analyzer"]
1521
group = "Rust 基础工具集"
1622
offline-dist-server = "toolchain"
1723

18-
[rust.rustup]
24+
[toolchain.rustup]
1925
aarch64-unknown-linux-gnu = "tools/rustup-init"
2026
x86_64-pc-windows-gnu = "tools/rustup-init.exe"
2127
x86_64-pc-windows-msvc = "tools/rustup-init.exe"

resources/toolkit-manifest/offline/test.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "Test-Only Toolkit"
55
version = "stable v1.86.0"
66
edition = "test"
77

8-
[rust]
8+
[toolchain]
99
channel = "1.86.0"
1010
profile = "minimal"
1111
display-name = "Minimal"
@@ -15,7 +15,7 @@ optional-components = ["llvm-tools", "rust-docs"]
1515
group = "Rust"
1616
offline-dist-server = "toolchain"
1717

18-
[rust.rustup]
18+
[toolchain.rustup]
1919
aarch64-unknown-linux-gnu = "tools/rustup-init"
2020
x86_64-pc-windows-gnu = "tools/rustup-init.exe"
2121
x86_64-pc-windows-msvc = "tools/rustup-init.exe"

resources/toolkit-manifest/online/bisheng.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11

22
# This file was automatically generated.
33
# 此文件是自动生成的.
4+
rustup-dist-server = "https://rust-dist.obs.cn-north-4.myhuaweicloud.com/bisheng"
5+
rustup-update-root = "https://xuanwu.base.atomgit.com/rustup"
46
name = "Rust 中国社区发行版 (毕昇)"
57
version = "bisheng v1.72.0"
68
edition = "bisheng"
79

8-
[rust]
10+
[cargo-registry]
11+
name = "xuanwu-sparse"
12+
index = "sparse+https://xuanwu.base.atomgit.com/index/"
13+
14+
[toolchain]
915
channel = "1.72.0"
1016
profile = "minimal"
1117
display-name = "Rust 官方工具"
@@ -14,7 +20,7 @@ components = ["clippy", "rustfmt", "rust-src"]
1420
optional-components = ["llvm-tools", "rust-analyzer"]
1521
group = "Rust 基础工具集"
1622

17-
[rust.rustup]
23+
[toolchain.rustup]
1824

1925
[tools.descriptions]
2026
llvm-tools = "包含 LLVM 工具的集合"

resources/toolkit-manifest/online/community.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11

22
# This file was automatically generated.
33
# 此文件是自动生成的.
4+
rustup-dist-server = "https://xuanwu.base.atomgit.com/"
5+
rustup-update-root = "https://xuanwu.base.atomgit.com/rustup"
46
name = "Rust 中国社区发行版"
57
version = "stable v1.87.0"
68
edition = "community"
79

8-
[rust]
10+
[cargo-registry]
11+
name = "xuanwu-sparse"
12+
index = "sparse+https://xuanwu.base.atomgit.com/index/"
13+
14+
[toolchain]
915
channel = "1.87.0"
1016
profile = "minimal"
1117
display-name = "Rust 官方工具"
@@ -14,7 +20,7 @@ components = ["clippy", "rustfmt", "rust-src"]
1420
optional-components = ["llvm-tools", "rust-docs", "rust-analyzer"]
1521
group = "Rust 基础工具集"
1622

17-
[rust.rustup]
23+
[toolchain.rustup]
1824

1925
[tools.descriptions]
2026
llvm-tools = "包含 LLVM 工具的集合"

resources/toolkit-manifest/online/test.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "Test-Only Toolkit"
55
version = "stable v1.86.0"
66
edition = "test"
77

8-
[rust]
8+
[toolchain]
99
channel = "1.86.0"
1010
profile = "minimal"
1111
display-name = "Minimal"
@@ -14,7 +14,7 @@ components = ["clippy", "rustfmt", "rust-src"]
1414
optional-components = ["llvm-tools", "rust-docs"]
1515
group = "Rust"
1616

17-
[rust.rustup]
17+
[toolchain.rustup]
1818

1919
[tools.descriptions]
2020
clippy = "A collection of lints to catch common mistakes and improve your Rust code."

0 commit comments

Comments
 (0)