Browse Source

Merge pull request #94 from pka/rustup

Use rustup for Rust installation
pull/96/head
Johannes Schickling 7 years ago
committed by GitHub
parent
commit
f3df5ff1bd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      rust/install.sh

11
rust/install.sh

@ -3,18 +3,11 @@
# exit if a command fails # exit if a command fails
set -e set -e
triple=x86_64-unknown-linux-gnu
# install curl (needed to install rust) # install curl (needed to install rust)
apt-get update && apt-get install -y curl gdb g++-multilib lib32stdc++6 libssl-dev libncurses5-dev apt-get update && apt-get install -y curl gdb g++-multilib lib32stdc++6 libssl-dev libncurses5-dev
# install rust
curl -sL https://static.rust-lang.org/dist/rust-nightly-$triple.tar.gz | tar xvz -C /tmp
/tmp/rust-nightly-$triple/install.sh
# install cargo
curl -sL https://static.rust-lang.org/cargo-dist/cargo-nightly-$triple.tar.gz | tar xvz -C /tmp
/tmp/cargo-nightly-$triple/install.sh
# install rust + cargo nightly
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
# cleanup package manager # cleanup package manager
apt-get remove --purge -y curl && apt-get autoclean && apt-get clean apt-get remove --purge -y curl && apt-get autoclean && apt-get clean

Loading…
Cancel
Save