Skip to content

Commit 192ccfb

Browse files
committed
Update README.md
1 parent 0387981 commit 192ccfb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,22 @@ Note that this is still experimental and only supported on the nightly channel:
8282
cargo clippy --fix -Z unstable-options
8383
```
8484

85+
#### Workspaces
86+
87+
All the usual workspace options should work with Clippy. For example the following command
88+
will run Clippy on the `example` crate:
89+
90+
```terminal
91+
cargo clippy -p example
92+
```
93+
94+
As with `cargo check`, this includes dependencies that are members of the workspace, like path dependencies.
95+
If you want to run Clippy **only** on the given crate, use the `--no-deps` option like this:
96+
97+
```terminal
98+
cargo clippy -p example -- --no-deps
99+
```
100+
85101
### Running Clippy from the command line without installing it
86102

87103
To have cargo compile your crate with Clippy without Clippy installation

0 commit comments

Comments
 (0)