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

Fix --mutually-exclusive-features containing optional deps. #261

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

xStrom
Copy link
Contributor

@xStrom xStrom commented Dec 9, 2024

If --mutually-exclusive-features contains an implicit feature derived from an optional dependency (e.g. tokio), then the activation of that feature was not correctly detected in the case of feat = ["tokio/full"].

This PR addresses that and such activations are now detected in matches_recursive.

Somewhat similar are cases of feat = ["tokio?/full"], however those continue to not be detected because they don't actually activate the feature. They propagate the sub-feature only if the main feature has already been activated.

@xStrom
Copy link
Contributor Author

xStrom commented Dec 9, 2024

I'll have a follow-up PR after this gets merged, so publishing can wait. 👍

Copy link
Owner

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@taiki-e taiki-e merged commit 9017a5f into taiki-e:main Dec 10, 2024
28 checks passed
@taiki-e taiki-e added the A-features Area: features (--feature-powerset, --each-feature, etc.) label Dec 10, 2024
@xStrom xStrom deleted the recursivefix branch December 10, 2024 11:46
@taiki-e
Copy link
Owner

taiki-e commented Jan 16, 2025

Published in 0.6.34.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-features Area: features (--feature-powerset, --each-feature, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants