默认nightly-2024-07-23 & config改为config.toml (#872)

This commit is contained in:
Jomo 2024-07-27 01:33:38 +08:00 committed by GitHub
parent 816ee5ae54
commit 3c0a1c8fa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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