-
-
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
Add resolver = "2"
to root Cargo.toml
#4357
Comments
This is due to v1 resolver merging the features of normal dependencies and the dev-dependencies tokio/.github/workflows/ci.yml Line 210 in dc18941
tokio/.github/workflows/ci.yml Lines 245 to 247 in dc18941
AFAIK cargo does not provide a stable way to change the resolver version at runtime, but I think it would be easy to add the ability to do that to cargo-hack. |
Alright, it's good that we are handling it properly. Thanks for verifying. |
Currently by not enabling the new feature resolver, test features are enabled even when building Tokio in non-test mode. This means e.g. that we never build Tokio with only the
fs
feature in CI because test-util depends on thert
feature, enabling that too.Adding the
resolver = "2"
option to our workspaceCargo.toml
fixes the issue on new rustc versions, but it causes our MSRV to emit an error when building Tokio.The text was updated successfully, but these errors were encountered: