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.
rustup target add --toolchain toolchain target
rustup target remove --toolchain toolchain target
rustup target list --toolchain toolchain
rustup target list --toolchain toolchain --installed