rust/setup-toolchain.sh
2019-10-11 15:53:55 +07:00

12 lines
295 B
Bash
Executable File

#!/bin/bash
# Set up the appropriate rustc toolchain
cd "$(dirname "$0")" || exit
if ! command -v rustup-toolchain-install-master > /dev/null; then
cargo install rustup-toolchain-install-master --debug
fi
rustup-toolchain-install-master -f -n master -c rustc-dev
rustup override set master