ツールのインストール
このページには、いくつかのツールのOSに依存しないインストール手順を掲載します。
Rustツールチェイン
https://rustup.rsの手順に従って、rustupをインストールします。
注意 コンパイラのバージョンが1.31以上であることを確認して下さい。rustc -vは下記に示す日付より新しい日付を返すべきです。
$ rustc -V
rustc 1.31.1 (b6c32da9b 2018-12-18)翻訳が古くなっています バンド幅とディスク使用量に関する懸念から、デフォルトインストールではネイティブコンパイルのみをサポートします。 ARM Cortex-Mアーキテクチャのクロスコンパイラを追加するために、下記のコンパイルターゲットをインストールします。
Cortex-M0, M0+, and M1 (ARMv6-M architecture):
rustup target add thumbv6m-none-eabiCortex-M3 (ARMv7-M architecture):
rustup target add thumbv7m-none-eabiCortex-M4 and M7 without hardware floating point (ARMv7E-M architecture):
rustup target add thumbv7em-none-eabiCortex-M4F and M7F with hardware floating point (ARMv7E-M architecture):
rustup target add thumbv7em-none-eabihfCortex-M23 (ARMv8-M architecture):
rustup target add thumbv8m.base-none-eabiCortex-M33 and M35P (ARMv8-M architecture):
rustup target add thumbv8m.main-none-eabiCortex-M33F and M35PF with hardware floating point (ARMv8-M architecture):
rustup target add thumbv8m.main-none-eabihfcargo-binutils
cargo install cargo-binutils
rustup component add llvm-toolsWINDOWS: prerequisite C++ Build Tools for Visual Studio 2019 is installed. https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16
cargo-generate
We’ll use this later to generate a project from a template.
cargo install cargo-generateNote: on some Linux distros (e.g. Ubuntu) you may need to install the packages libssl-dev and pkg-config prior to installing cargo-generate.
OS-Specific Instructions
使用しているOSに特有の手順に従って下さい。