-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Should --each-feature and --feature-powerset run --all-features? #42
Comments
It would make sense for Also, if |
Nah, it's not clear how this should interact with #48. |
I prefer to do this on both flags and to add |
With regard to all-features, why does this need to be included, given that it's inherently already part of the powerset? Likewise for no-default-features. I found the previous behavior odd, and was surprised to learn that it was expanded. |
@jhpratt I don't remember if it is exactly the same at this time, but all-features will behave differently than a normal combination of features, at least in the future (rust-lang/cargo#8799). |
Neat. I didn't realize namespaced features were progressing. Thanks for the info. |
That said, I think #61 implemented this in a somewhat wrong way. UPDATE: fixed in 0.4.2 |
86: Do not include --all-features in feature combination if --exclude-features passed r=taiki-e a=taiki-e See #42 (comment) Co-authored-by: Taiki Endo <[email protected]>
141: Do not add --all-features to combinations if it is already covered by another combination r=taiki-e a=taiki-e This fixes an issue where `--feature-powerset` and `--each-feature` add `--all-features` as one of the combinations, even if it is already covered by another combination. (The initial work on this fix was included in #140.) Hopefully, the new behavior should be explained almost exactly in the long help message. https://github.com/taiki-e/cargo-hack/blob/4234b37e670368067b64dba249ac41616fe2da85/tests/long-help.txt#L30-L37 https://github.com/taiki-e/cargo-hack/blob/4234b37e670368067b64dba249ac41616fe2da85/tests/long-help.txt#L39-L47 Follow-up: #42 Co-authored-by: Taiki Endo <[email protected]>
I think #141 (published in 0.5.9) has fixed the rest of the problems here. |
default/no-default features are already included, so all-features also need to be included?
The text was updated successfully, but these errors were encountered: