Add support for a cross-compilation target.
Section: Components and targets
Install a target triple
bash
bash
rustup target add x86_64-unknown-linux-muslExplanation
A common step when building static Linux binaries or cross-compiling from another host platform.
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 Components and targets
List installed and available components
See whether rustfmt, clippy, or docs are installed.
List installed targets
Show available target triples already added locally.
Show active toolchain details
Display installed toolchains and the active default.