rustup

rustup target

Inspect the targets installed for the active toolchain. Adding a target supplies the distributed target libraries where available, not an entire cross-linking toolchain. Removing a target may break builds that depend on it. Example format: shell. Manual illustration; review prerequisites and side effects before execution. No automatic installation, updates, network calls or configuration changes. Expected result (not executed): Lists installed target names, which vary by toolchain. Common mistake: Assuming a target library includes the platform linker and SDK.

Formal Syntax & Structure

rust syntaxrust
rustup target list / add / remove

Working Example

Example Snippetrust
rustup target list --installed
Rust Reference