-
-
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
tokio-util 0.7.9
should have bumped rust-version
#6125
Comments
Thank you for bringing this to our attention. We will need to figure out how to add a CI step to prevent this from happening again. In the meantime, I have submitted #6126. |
Small observation, I noticed that
Line 37 in 74c6e6c
Line 37 in 3f6165d
NotesCollapsed as slightly off-topic (click to expand)Not likely to be helpful advice to many, but thought I'd share that with some additional context below. This is mostly notes from my experience, not too relevant to this issue which already has a fix queued for furutre [package]
name = "reproduction"
version = "0.1.0"
edition = "2021"
rust-version = "1.56.1"
[dependencies]
tokio = "=1.27"
tokio-util = "0.7" $ cargo +1.56.1 check
Updating crates.io index
Compiling tokio v1.27.0
Checking tokio-util v0.7.8
Checking reproduction v0.1.0 (/tmp/reproduction)
Finished dev [unoptimized + debuginfo] target(s) in 2.54s Related resolver woesUsually you can pin the implicit dep of Example, for When Alternatively for the
|
Description
In this PR a change was made where the deleted comment notes MSRV below 1.60 will fail.
rust-version
inCargo.toml
fortokio-util
should also have been raised to1.60
.Problem
h2 0.3.20
haverust-version = "1.56.0"
with dependency ontokio-util = "0.7"
semver.cargo +nightly generate-lockfile -Z msrv-policy
- but only when the crate releases maintain an accuraterust-version
(eg: explicit changes within the crates src).Now this will fail to resolve correctly with cargo on toolchains below
1.60
despite therust-version
compatibility declared bytokio-util 0.7.9+
. The version should still be raised, and ideally CI adjusted to properly catch PRs that break the declaredrust-version
so that it is also correctly raised in future.tokio-util 0.7.9
is the first time I've encountered this kind of-Z msrv-policy
resolver failure thus far.hashbrown 0.14.2
has a relaxedrust-version
that fails by default (requires a dependency to be pinned or opt-out of default feature). Acceptable, it is the minimum rust version supported for the release.rust-version
not being declared further down in the dependency chain, which understandably is not reliable to resolve.Reproduction
Expected
Successful build
Actual
More Info
Rust
1.56.1
is quite old, and not realistically going to work smoothly with-Z msrv-policy
(or equivalent when stabilized) but it would be good to prevent this happening torust-version
with future MSRV bumps so that the feature will become more reliable going forward.Version
Platform
The text was updated successfully, but these errors were encountered: