Do not run lints for patched crates

I have the following issue: I have a workspace with multiple projects. I set a few Lints and Options when building the workspace.

To allow me to move quicker than the upstream I patched some crates and put the patch.crates-io section in my workspace Cargo.toml.

Now I want to use the lint unused_crate_dependencies which would work fine for my projects, but has a false positive in a patched crate. I find it surprising, that the workspace lints also get applied to the patched crates, even though they are not part of my workspace.

Of course I could work around the issue (because I already modified the patched crate), but I'd prefer another solution.

How would this be solved properly?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.