2022-01-21 11:24:43 -06:00
|
|
|
# Installation
|
|
|
|
|
2022-12-31 04:14:20 -06:00
|
|
|
If you're using `rustup` to install and manage your Rust toolchains, Clippy is
|
2022-01-21 11:24:43 -06:00
|
|
|
usually **already installed**. In that case you can skip this chapter and go to
|
|
|
|
the [Usage] chapter.
|
|
|
|
|
|
|
|
> Note: If you used the `minimal` profile when installing a Rust toolchain,
|
|
|
|
> Clippy is not automatically installed.
|
|
|
|
|
|
|
|
## Using Rustup
|
|
|
|
|
|
|
|
If Clippy was not installed for a toolchain, it can be installed with
|
|
|
|
|
|
|
|
```
|
|
|
|
$ rustup component add clippy [--toolchain=<name>]
|
|
|
|
```
|
|
|
|
|
|
|
|
## From Source
|
|
|
|
|
2023-03-11 17:50:50 -06:00
|
|
|
Take a look at the [Basics] chapter in the Clippy developer guide to find step-by-step
|
|
|
|
instructions on how to build and install Clippy from source.
|
2022-01-21 11:24:43 -06:00
|
|
|
|
|
|
|
[Basics]: development/basics.md#install-from-source
|
|
|
|
[Usage]: usage.md
|