ubuntu_install_rust.sh 565 Bytes
Newer Older
1 2
apt-get update && apt-get install -y --no-install-recommends --force-yes curl

3 4
export RUSTUP_HOME=/opt/rust
export CARGO_HOME=/opt/rust
5
# this rustc is one supported by the installed version of rust-sgx-sdk
6
curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --default-toolchain nightly-2018-10-01
7
. $CARGO_HOME/env
8
rustup toolchain add nightly
9
rustup component add rust-src
10
cargo +nightly install sccache
11 12
cargo +nightly install rustfmt-nightly --version 0.99.5 --force
cargo +nightly install xargo
13 14

# make rust usable by all users
15
chmod -R a+w /opt/rust