mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 14:16:47 +00:00
默认nightly-2024-07-23 & config改为config.toml (#872)
This commit is contained in:
parent
816ee5ae54
commit
3c0a1c8fa2
@ -247,7 +247,7 @@ rustInstall() {
|
||||
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
|
||||
rustup component add rust-src
|
||||
rustup component add llvm-tools-preview
|
||||
rustup default nightly
|
||||
rustup default nightly-2024-07-23
|
||||
|
||||
echo "Rust已经成功的在您的计算机上安装!请运行 source ~/.cargo/env 以使rust在当前窗口生效!"
|
||||
fi
|
||||
|
@ -20,7 +20,7 @@ registry = \"https://github.com/rust-lang/crates.io-index\" \n \
|
||||
replace-with = 'tuna' \n \
|
||||
[source.tuna] \n \
|
||||
registry = \"sparse+https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/\" \n \
|
||||
" > ~/.cargo/config
|
||||
" > ~/.cargo/config.toml
|
||||
else
|
||||
echo -e "[source.crates-io] \n \
|
||||
registry = \"https://github.com/rust-lang/crates.io-index\" \n \
|
||||
@ -28,6 +28,6 @@ registry = \"https://github.com/rust-lang/crates.io-index\" \n \
|
||||
replace-with = 'tuna' \n \
|
||||
[source.tuna] \n \
|
||||
registry = \"https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git\" \n \
|
||||
" > ~/.cargo/config
|
||||
" > ~/.cargo/config.toml
|
||||
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user