Browse Source

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

Jomo 7 months ago
parent
commit
3c0a1c8fa2
2 changed files with 3 additions and 3 deletions
  1. 1 1
      tools/bootstrap.sh
  2. 2 2
      tools/change_rust_src.sh

+ 1 - 1
tools/bootstrap.sh

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

+ 2 - 2
tools/change_rust_src.sh

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