See whether rustfmt, clippy, or docs are installed.

Section: Components and targets

List installed and available components

bash
bash
rustup component list
Explanation

Useful when `cargo fmt` or `cargo clippy` fails because the component is missing.

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
Install Clippy
Add the Clippy lint component to the active toolchain.
OpenIn sheetbashsame section
Install rustfmt
Add the formatter component to the active toolchain.
OpenIn sheetbashsame section
List installed targets
Show available target triples already added locally.
OpenIn sheetbashsame section
Install a target triple
Add support for a cross-compilation target.
OpenIn sheetbashsame section
Build for a specific target
Compile using an installed target triple.
OpenIn sheetbashsame section
Show active toolchain details
Display installed toolchains and the active default.
OpenIn sheetbash1 tag match