-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow configuring multiple-versions lint level on per-crate basis #350
Comments
So you are wanting to opt in to detecting multiple versions of the same crate, rather than needing to mark one or more duplicates via the Can you maybe give an anecdotal scenario or example configuration so I can understand what you want more clearly, because right now the change in my head would lead to either duplicates creeping in over time, or possibly needing to make multiple configuration changes for each duplicate crate. |
Yes. I think this can be useful when a certain dependency is rather heavy, for example tokio. You might not want to enforce "no duplicate crates" for the whole project since maintaining that with a large depgraph is a decent bit of extra work and having small dependencies duplicated doesn't usually hurt much (e.g. different versions of macro-rules crates like |
Yep, I want this to deny having multiple versions of I may try implementing this if there's consensus. What should the syntax look like? Perhaps: [[bans.deny]]
name = "rustix"
multiple-versions = "deny" |
Is your feature request related to a problem? Please describe.
Sometimes, it is desireable to enforce certain (usually direct) dependencies are not in the dependency graph another time, while at the same time it is pretty much impossible to enforce that every crate is only present once in the depgraph.
Describe the solution you'd like
Allow banning multiple versions of specific crates (in addition to being able to set the lint level for any crate being in the depgraph multiple times).
The text was updated successfully, but these errors were encountered: