-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
resolver=2 still needed for workspaces when using rust 2021 #90148
Comments
I guess this is because a virtual manifest doesn't have an edition of its own, but this is a Cargo issue. |
thanks, I can see there is already an issue there rust-lang/cargo#9996 |
Thinking about this, I think it really is a critical bug, possibly deserving of a 1.56.1 that either fixes the issue or rolls back resolver = 2 default, |
We can consider that (cc @rust-lang/release), but IMO it's not a regression, so it wouldn't deserve a point release. |
Thanks for the report! The resolver is inherently a global setting, and in a workspace can only be set at the workspace level. The edition cannot be set globally (tracked in rust-lang/cargo#5784), so it must be set with the I'm going to close as this is working as intended. |
It seems like `resolver = 2` is just a basic requirement to build any package with dependencies. To make the examples work it's needed. Apparently there is work to make it default (rust-lang/rust#90148) but right now it's required.
This repo demonstrates the problem:
https://github.com/rukai/resolver2-workspace-bug
It includes wgpu 0.11 which requires resolver 2.
Meta
Occurs on:
The text was updated successfully, but these errors were encountered: