Add instructions for preexisting Rust installation

Closes #64
pull/66/head
Andre Richter 4 years ago committed by Andre Richter
parent b6d480d548
commit b5fd8545d6
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E

@ -64,20 +64,27 @@ other Unix flavors such as **macOS**, but this is only _experimental_.
### 🚀 The tl;dr Version
1. [Install Docker][install_docker].
2. Ensure your user account is in the [docker group].
3. Install a suitable `Rust` toolchain:
[docker group]: https://docs.docker.com/engine/install/linux-postinstall/
```bash
curl https://sh.rustup.rs -sSf | sh -s -- \
--default-toolchain nightly-2020-05-04 \
--component llvm-tools-preview rustfmt
source $HOME/.cargo/env
rustup target add aarch64-unknown-none-softfloat
cargo install cargo-binutils
```
1. Ensure your user account is in the [docker group].
1. Install a suitable `Rust` toolchain:
1. If you already have a version of Rust installed:
```bash
rustup toolchain add nightly-2020-06-28
rustup default nightly-2020-06-28
rustup component add llvm-tools-preview
rustup target add aarch64-unknown-none-softfloat
cargo install cargo-binutils
```
2. If you need a fresh install:
```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
--default-toolchain nightly-2020-06-28 \
--component llvm-tools-preview
source $HOME/.cargo/env
rustup target add aarch64-unknown-none-softfloat
cargo install cargo-binutils
```
3. In case you use `Visual Studio Code`, I strongly recommend installing the [Rust Analyzer extension].
4. If you are **NOT** running Linux, some `Ruby` gems are needed as well:
@ -87,6 +94,7 @@ sudo gem install bundler
bundle install --path .vendor/bundle
```
[docker group]: https://docs.docker.com/engine/install/linux-postinstall/
[Rust Analyzer extension]: https://marketplace.visualstudio.com/items?itemName=matklad.rust-analyzer
### 🧰 The Long Version: Eliminating Toolchain Hassle

Loading…
Cancel
Save