-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
cargo feature confusion in workspaces #11459
Comments
Could you fill out more details, for example
|
updated the issue with two Cargo.toml's that cause the issue. the error is that it does not fail to build when the root |
Seems like adding the crate to the workspace causes both the |
So reproduction steps are
Is that correct? And can you copy/paste the error output message? |
Yes, your steps reproduce the issue. The error is a generic build error:
|
Likely, the difference between workspace or not is in which resolver is being used. When you set The resolver is determined at the workspace level but defaults to the package's edition when it is present in the root crate. For a virtual workspace (no package in it), we are stuck defaulting to Work has started on trying to steer people towards this in documentation (#10625) and providing warnings (#10910) |
ah this does fix the problem. the mentioned PR's would have indeed prevented the issue. thanks |
Problem
here is a minimal repro case: https://github.com/dvc94ch/cargo-bug
fails to build when in an empty workspace but builds when not in a workspace
Steps
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: