Rust and Cargo 1 cheatsheet
Rust and Cargo 1: Projects and toolchain
8 common Rust and Cargo 1 tasks.
Add a compilation target
Install the standard library for another target, here WebAssembly.
rustup target add wasm32-unknown-unknown
Install clippy and rustfmt
Add the linter and formatter to the active toolchain.
rustup component add clippy rustfmt
Install the nightly toolchain
Install a toolchain for unstable features, then run with cargo +nightly.
rustup toolchain install nightly