mirror of
https://github.com/nkbai/book.git
synced 2026-09-04 21:52:46 +08:00
1.1 KiB
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: