-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Strip features which is owned by dev dependencies only #12230
Strip features which is owned by dev dependencies only #12230
Conversation
r? @ehuss (rustbot has picked a reviewer for you, use r? to override) |
25be678
to
21c512d
Compare
21c512d
to
d787d28
Compare
I miss to strip features for |
d787d28
to
fc3e016
Compare
c6a5927
to
dad53c5
Compare
@rustbot author Just taking a quick peak at the current code, it looks like it may be unconditionally stripping dev-dependency features. I believe they should only be stripped for dev-dependencies that don't specify a version (see |
dad53c5
to
fa9d482
Compare
fa9d482
to
5c08db1
Compare
What's the I am currently in the process of creating additional unit tests. |
Consider there is a [package]
name = "foo"
version = "0.1.0"
authors = []
license = "MIT"
description = "foo"
documentation = "foo"
homepage = "foo"
repository = "foo"
[dependencies]
[dev-dependencies]
byte-unit = {version = "4.0.19", features = ["alloc"]}
[features]
foo_feature = ["byte-unit/alloc"] Do you agree that Cc. @Morganamilo |
The
No. It only really needs to strip the features when the dependency is completely removed via the |
☔ The latest upstream changes (presumably #12290) made this pull request unmergeable. Please resolve the merge conflicts. |
@eval-exec Just checking in if you are still interested in working on this, or if you have any questions. |
I'm going to close due to inactivity. If you are interested in continuing on this, feel free to reopen (just beware that due to a quirk in GitHub, if you push to your branch before reopening that you'll need to open a new PR instead). |
What does this PR try to resolve?
This PR want to close #12225
How should we test and review this PR?
I added a unit test.
Additional information