File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ if [[ -n $APPVEYOR ]]; then
10
10
11
11
appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
12
12
export USERPROFILE=" D:\\ "
13
- ./rustup-init -yv --default-toolchain $rust_stable --default-host x86_64-pc-windows-msvc
13
+ ./rustup-init -yv --default-toolchain " $rust_stable " --default-host x86_64-pc-windows-msvc
14
14
export PATH=" $PATH :/d/.cargo/bin"
15
15
rustc -vV
16
16
cargo -vV
Original file line number Diff line number Diff line change 18
18
if [[ -n $RUST_STABLE_VERSION ]]; then
19
19
stable_version=" $RUST_STABLE_VERSION "
20
20
else
21
- stable_version=1.65.0
21
+ # read rust version from rust-toolchain.toml file
22
+ base=" $( dirname " ${BASH_SOURCE[0]} " ) "
23
+ # pacify shellcheck: cannot follow dynamic path
24
+ # shellcheck disable=SC1090,SC1091
25
+ source " $base /../scripts/read-cargo-variable.sh"
26
+ stable_version=$( readCargoVariable channel " $base /../rust-toolchain.toml" )
22
27
fi
23
28
24
29
if [[ -n $RUST_NIGHTLY_VERSION ]]; then
Original file line number Diff line number Diff line change
1
+ [toolchain ]
2
+ channel = " 1.65.0"
You can’t perform that action at this time.
0 commit comments