rustup-target

Manage Rust cross-compilation targets

TLDR

List targets
$ rustup target list
Add target
$ rustup target add [wasm32-unknown-unknown]
Add ARM target
$ rustup target add aarch64-unknown-linux-gnu
Remove target
$ rustup target remove [target]

SYNOPSIS

rustup target command [options]

DESCRIPTION

rustup target manages cross-compilation targets. Add targets to compile for different platforms (ARM, WebAssembly, Windows, etc.) from your current system.

PARAMETERS

list

List available targets.
add target
Install target.
remove target
Uninstall target.
--toolchain name
Target specific toolchain.

INSTALL

sudo apt install rustup
sudo dnf install rustup
sudo pacman -S rustup
sudo zypper install rustup
brew install rustup
nix profile install nixpkgs#rustup

SEE ALSO

rustup(1), rustup-toolchain(1)