File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,22 @@ Note that this is still experimental and only supported on the nightly channel:
8282cargo 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
87103To have cargo compile your crate with Clippy without Clippy installation
You can’t perform that action at this time.
0 commit comments