Section: Components and targets

Install Clippy

bash
bash
rustup component add clippy
Explanation

Required before using `cargo clippy` if the component is not already installed.

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 rustfmt
Add the formatter component to the active toolchain.
OpenIn sheetbashsame section
List installed and available components
See whether rustfmt, clippy, or docs are installed.
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