Convert toolchain file to TOML syntax

rustup 1.23.0 (2020-11-27) introduced support for TOML syntax for the
toolchain file. Use this and specify required compoenents.

To ensure you are using a new enough rustup, run:

    rustup self update
This commit is contained in:
Tim Crawford 2021-03-15 09:35:01 -06:00 committed by Jeremy Soller
parent 50eedc20d2
commit 7d6a15e63c
2 changed files with 5 additions and 6 deletions

View File

@ -1 +1,3 @@
nightly-2020-07-27
[toolchain]
channel = "nightly-2020-07-27"
components = ["rust-src"]

View File

@ -89,11 +89,8 @@ if ! which rustup &> /dev/null; then
source "${HOME}/.cargo/env"
fi
msg "Installing pinned Rust toolchain"
rustup toolchain install "$(cat rust-toolchain)"
msg "Installing source for pinned Rust toolchain"
rustup component add --toolchain "$(cat rust-toolchain)" rust-src
msg "Installing pinned Rust toolchain and components"
rustup show
msg "\x1B[32mSuccessfully installed dependencies"
echo "Ready to run ./scripts/build.sh [model]" >&2