rustup target
Modify a toolchain's supported targets. Without the--toolchain
optionrustup
will use the default toolchain. Seerustup help toolchain
for more information about toolchains. More information: https://rust-lang.github.io/rustup.
-
Add a target to a toolchain:
rustup target add --toolchain {{toolchain}} {{target}}
-
Remove a target from a toolchain:
rustup target remove --toolchain {{toolchain}} {{target}}
-
List available and installed targets for a toolchain:
rustup target list --toolchain {{toolchain}}
-
List installed targets for a toolchain:
rustup target list --toolchain {{toolchain}} --installed
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.