Files
embbed-rust/src/intro/install.md
Jorge Aparicio 9da22bdd21 move sections around
explain the tools before showing the installation steps

cover no_std before the tooling
2018-11-09 21:38:41 +01:00

1.1 KiB

Installing the tools

This page contains OS-agnostic installation instructions for a few of the tools:

Rust Toolchain

Install rustup by following the instructions at https://rustup.rs.

Then switch to the beta channel.

$ rustup default beta

NOTE Make sure you have a beta equal to or newer than 1.31-beta. rustc -V should return a date newer than the one shown below.

$ rustc -V
rustc 1.31.0-beta.4 (04da282bb 2018-11-01)

For bandwidth and disk usage concerns the default installation only supports native compilation. To add cross compilation support for the ARM Cortex-M architecture install the following compilation targets.

$ rustup target add thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf

cargo-binutils

$ cargo install cargo-binutils

$ rustup component add llvm-tools-preview

OS-Specific Instructions

Now follow the instructions specific to the OS you are using: