-
Notifications
You must be signed in to change notification settings - Fork 30
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
Cargo Resolver V2 (different feature sets for build and runtime dependencies) is not supported #38
Comments
So unfortunately we're stuck with potentially reporting more dependencies than what actually went into the build if all of the below are true:
|
A reproducing test case can be found in this branch: https://github.com/rust-secure-code/cargo-auditable/tree/fix-resolver-v2 rust-lang/rfcs#3553 is required to fix this. |
It might be possible to support using the Although the status of resolver v2 support in |
Cargo has made it possible to depend on the same version of a given crate with different feature sets, provided that one version is a runtime dependency and another is a build dependency.
The dependency resolution in rust-audit was written prior to that change, and it's possible that
auditable-serde
collates these two packages.The deduplication is done on the package ID from cargo-metadata, and we'll need to double-check that this is in fact correct even in the presence of the new Cargo feature resolver:
https://github.com/Shnatsel/rust-audit/blob/d7fa6fff1861799adab41638267e0457b7ba4698/auditable-serde/src/lib.rs#L219
The text was updated successfully, but these errors were encountered: