install.sh 275 B

123456789101112
  1. set -euxo pipefail
  2. main() {
  3. if [ $TARGET = thumbv7m-none-eabi ]; then
  4. cargo install --list | grep xargo || \
  5. cargo install xargo
  6. rustup component list | grep 'rust-src.*installed' || \
  7. rustup component add rust-src
  8. fi
  9. }
  10. main