rust/setup-toolchain.sh

16 lines
423 B
Bash
Raw Normal View History

#!/bin/bash
# Set up the appropriate rustc toolchain
2019-10-11 10:53:55 +02:00
cd "$(dirname "$0")" || exit
if ! command -v rustup-toolchain-install-master > /dev/null; then
2019-10-12 05:18:31 +02:00
cargo install \
2019-10-13 19:47:36 +02:00
--git https://github.com/lzutao/rustup-toolchain-install-master \
--rev c44dbf920b644000ac3ba01184cbb1a01bb91519 \
2019-10-12 05:18:31 +02:00
--bin rustup-toolchain-install-master \
--debug
fi
2019-10-14 05:25:05 +02:00
rustup-toolchain-install-master -f -n master
rustup override set master