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?