Section: Targets and cross-compilation

Add Apple Silicon target

bash
bash
rustup target add aarch64-apple-darwin
Explanation

Useful when cross-building or producing release artifacts for macOS ARM.

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
List available targets
Show supported target triples.
OpenIn sheetbashsame section
Add a Linux musl target
Install standard libraries for a cross target.
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 sheetbash1 tag match
Pin toolchain in version-controlled config
Check in a `rust-toolchain.toml` file.
OpenIn sheettoml1 tag match