Add the Clippy lint component to the active toolchain.
Section: Components and targets
Install Clippy
bash
bash
rustup component add clippyExplanation
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
List installed and available components
See whether rustfmt, clippy, or docs are installed.
List installed targets
Show available target triples already added locally.
Show active toolchain details
Display installed toolchains and the active default.