cargo-deny icon indicating copy to clipboard operation
cargo-deny copied to clipboard

Detect unused deny `wrappers` use cases

Open repi opened this issue 3 years ago • 0 comments

We had an exemption of a crate deny rule for another crate that still needed it, which we used the wrappers field for (a bit hacky), like this:

deny = [
    { name = "inventory", wrappers = [ "tract-pulse", "tract-pulse-opl" ] }, # disallow these crates that rely on static initialization order which we've had issues with. tract needs it though.
]

but a later version of those tract-* crates had then finally removed the dependency on inventory and it was no longer reference in our Cargo.lock but we didn't know. Would be nice if cargo-deny would have logged out a warning about an unused wrappers field here for the crates so one can get a heads up and remove it.

repi avatar Feb 12 '22 13:02 repi