rust/setup-toolchain.sh
Jeremy Fitzhardinge 47563a13eb Add setup-toolchain.sh script to configure the master version of rustc,
and update CONTRIBUTING.md accordingly.
2019-02-03 14:41:46 -08:00

10 lines
362 B
Bash
Executable File

#!/bin/bash
# Set up the appropriate rustc toolchain
cd $(dirname $0)
cargo install rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed"
RUSTC_HASH=$(git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}')
rustup-toolchain-install-master -f -n master $RUSTC_HASH
rustup override set master