Skip to content

Add --feature-requires flag for passing feature dependencies#292

Open
jcgruenhage wants to merge 1 commit intotaiki-e:mainfrom
jcgruenhage:feature-dependencies
Open

Add --feature-requires flag for passing feature dependencies#292
jcgruenhage wants to merge 1 commit intotaiki-e:mainfrom
jcgruenhage:feature-dependencies

Conversation

@jcgruenhage
Copy link

This implements what #264 asks for without splitting this into multiple commands. Theoretically this can replace --group-features a,b by passing --feature-requires a:b,b:a and similarly it could be easily expanded to replace --mutually-exclusive-features a,b if we expanded the constraints to support negative dependencies --feature-requires a:!b,b:!a, but for now it's fully additional to those.

I've chosen winnow for parsing, because we already depend on it through our toml parser.

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.

1 participant