Skip to content
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

Separate lint levels for multiple versions when the crate is dev- or build-dep'd vs. normal deps. #329

Closed
nlewycky opened this issue Feb 10, 2021 · 1 comment · Fixed by #557
Labels
enhancement New feature or request

Comments

@nlewycky
Copy link
Contributor

Is your feature request related to a problem? Please describe.
We minimize multiple dependencies in our codebase as part of minimizing the size of our final binary. It'd be great if we could use cargo deny for this, but presently it issues errors on different versions of cfg-if crate which is only a dev-dependency.

Describe the solution you'd like
Separate lint levels for multiple-versions that are going to be included in the build vs. multiple versions that are dev/build only.

The fact it's a dev-dependency are already included in the printout of the dependency structure when there is a conflict.

Describe alternatives you've considered
Presently the workaround is to use skip to skip the whole crate as part of duplicate detection. This is OK to get started but not great long term.

@teor2345
Copy link

I just posted bug #469, where this issue seems to get much worse in cargo deny 0.13.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants