File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ because that's clearly a non-descriptive name.
18
18
- [ Cargo lints] ( #cargo-lints )
19
19
- [ Rustfix tests] ( #rustfix-tests )
20
20
- [ Testing manually] ( #testing-manually )
21
+ - [ Running directly] ( #running-directly )
21
22
- [ Lint declaration] ( #lint-declaration )
22
23
- [ Lint registration] ( #lint-registration )
23
24
- [ Lint passes] ( #lint-passes )
@@ -186,6 +187,15 @@ cargo dev lint input.rs
186
187
from the working copy root. With tests in place, let's have a look at
187
188
implementing our lint now.
188
189
190
+ ## Running directly
191
+
192
+ While it's easier to just use ` cargo dev lint ` , it might be desirable to get
193
+ ` target/release/cargo-clippy ` and ` target/release/clippy-driver ` to work as well in some cases.
194
+ By default, they don't work because clippy dynamically links rustc. To help them find rustc,
195
+ add the path printed by` rustc --print target-libdir ` (ran inside this workspace so that the rustc version matches)
196
+ to your library search path.
197
+ On linux, this can be done by setting the ` LD_LIBRARY_PATH ` environment variable to that path.
198
+
189
199
## Lint declaration
190
200
191
201
Let's start by opening the new file created in the ` clippy_lints ` crate at
You can’t perform that action at this time.
0 commit comments