Modify a toolchain’s supported targets. Without the
--toolchainoptionrustupwill use the default toolchain. Seerustup help toolchainfor 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