Section: Targets and cross-compilation

List available targets

bash
bash
rustup target list
Explanation

Includes installed status for each target.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Targets and cross-compilation
Add a Linux musl target
Install standard libraries for a cross target.
OpenIn sheetbashsame section
Add Apple Silicon target
Install support for macOS ARM builds.
OpenIn sheetbashsame section
Build for a target triple
Compile artifacts for a non-default platform.
OpenIn sheetbashsame section
Run is typically host-only
Build target-specific binaries for packaging instead of running them locally.
OpenIn sheetbashsame section
List installed toolchains
Display toolchains available on the machine.
OpenIn sheetbash2 tag match
List components
Show installed and available components for active toolchain.
OpenIn sheetbash2 tag match