-
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
Specified features are silently ignored when building from the root of a workspace with default-members #5849
Comments
@jdm yep, we've tried fix that a while back, and it actually broke the Servo's build, so we've rollbacked the change. I'd rather say that the current semantics of We probably should fix features in Cargo holistically, both at the level of resolve and at the level of CLI flags. At this point it is clear that this needs to be a coordinated explicit effort with warnings and opt-in. |
I agree that the current semantics in how features and workspaces interact are broken and could use a complete redesign. But other than it needing to be opt-in somehow (`edition = "2018" could have been it, but maybe it’s a bit late now) to avoid breaking existing projects I haven’t yet sat down to think about what the details of what the new design should be. |
The |
Given a workspace with default members, not only does
cargo build --features nonexistent
from the workspace root report no errors if thenonexistent
feature is not a feature supported by any of the workspace members, but any real feature names that are passed are silently ignored.-v
shows that the members of the workspace that are built use their default set of features instead.The text was updated successfully, but these errors were encountered: