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

Add prefer-index feature #47

Merged
merged 4 commits into from Nov 1, 2022
Merged

Add prefer-index feature #47

merged 4 commits into from Nov 1, 2022

Conversation

Jake-Shadle
Copy link
Member

This adds a new prefer-index feature which attempts to use features declared on the crate in the index, rather than relying on the crate metadata. The reason for this is a bug/problem in cargo and/or the crates.io registry depending on how you look at it, where the index, which is the source of truth when resolving crates and their features, can be different from the package metadata sourced from the manifest for the crate version in question, see rust-lang/cargo#11319 for more info. If the feature is turned off we just (silently) ignore the features that have been resolved, but don't exist in the crate metadata, though of course doesn't handle cases where the package metadata was actually completely wrong in terms of have different subfeatures in a feature, but we can't know that unless we look at the index.

Resolves: #46

@Jake-Shadle Jake-Shadle merged commit 7e86bf7 into main Nov 1, 2022
@Jake-Shadle Jake-Shadle deleted the prefer-index branch November 1, 2022 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic on crate imageproc
1 participant