diff options
| author | Eduardo Broto <ebroto@tutanota.com> | 2020-10-17 19:55:03 +0200 |
|---|---|---|
| committer | Eduardo Broto <ebroto@tutanota.com> | 2020-11-27 17:41:50 +0100 |
| commit | 192ccfb4efc0a38378f4564b26e6033dec432bdb (patch) | |
| tree | 8d6be2d9a7f1de033ea85c559754515ed67c850e | |
| parent | 0387981f2b5e41c982ec4a1b102f0c54997361ff (diff) | |
| download | rust-192ccfb4efc0a38378f4564b26e6033dec432bdb.tar.gz rust-192ccfb4efc0a38378f4564b26e6033dec432bdb.zip | |
Update README.md
| -rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md index fddf0614a0b..aaa55e11c7d 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,22 @@ Note that this is still experimental and only supported on the nightly channel: cargo clippy --fix -Z unstable-options ``` +#### Workspaces + +All the usual workspace options should work with Clippy. For example the following command +will run Clippy on the `example` crate: + +```terminal +cargo clippy -p example +``` + +As with `cargo check`, this includes dependencies that are members of the workspace, like path dependencies. +If you want to run Clippy **only** on the given crate, use the `--no-deps` option like this: + +```terminal +cargo clippy -p example -- --no-deps +``` + ### Running Clippy from the command line without installing it To have cargo compile your crate with Clippy without Clippy installation |
