Skip to content

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