Open polarathene opened 1 year ago
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 0.7.8
is resolved from the 0.7
semver when tokio
is pinned to a version below 1.28
:
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