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

Support Cargo resolver v2 #760

Open
Shnatsel opened this issue Aug 6, 2024 · 0 comments
Open

Support Cargo resolver v2 #760

Shnatsel opened this issue Aug 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Shnatsel
Copy link
Contributor

Shnatsel commented Aug 6, 2024

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.

cargo metadata does not support this. We use it as our data source, so we may sometimes erroneously report certain build-only dependencies as runtime dependencies.

This would be automatically fixed with a better data source, if Cargo emitted SBOM information directly: rust-lang/rfcs#3553

Until then it might be possible to work around the limitations of cargo metadata using the krates crate: EmbarkStudios/krates#91

@Shnatsel Shnatsel added enhancement New feature or request and removed enhancement New feature or request labels Aug 8, 2024
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

No branches or pull requests

1 participant