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

Ban direct dependency only

Open jayvdb opened this issue 6 months ago • 0 comments

Is your feature request related to a problem? Please describe.

I would like to ban direct dependency on the "http" crate in our project. All use of it should be via the re-exports provided by other crates, as this ensures that the correct version of "http" is used.

This can be done by doing { crate = "http", wrappers = [ ... list 50 crates here...] } , but that will require regular maintenance to keep it up to date

Describe the solution you'd like

Some syntax that allows the http crate only indirectly, not used directly in workspace members, including not in dev-deps, etc.

Describe alternatives you've considered

Additional context

jayvdb avatar Jun 16 '25 04:06 jayvdb