Add cargo metadata to msrv check due to valuable #1920
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Hello! I noticed my CI is failing when trying to include tracing on rust version
1.49.0
. This is the advertised MSRV but is breaking becausetarpaulin
, used for calculating coverage, fails when callingcargo metadata
.Even when the
valuable
is not enabled, it shows up inCargo.lock
. This is fine even on rust version1.49.0
as it is ignored when runningcargo build
, butcargo metadata
fails:Running the same command on rust version 1.51.0,
valuable
's stated MSRV, works as expected.Solution
This PR is just to highlight the issue. The proposed solution is to consider
cargo metadata
as a command that should be supported by the MSRV, and then bump all the crates that depend onvaluable
to MSRV1.51.0
.In my case (arlyon/async-stripe#160), I will probably end up downgrading to the latest version without
valuable
for now, and keep a note if we decide to bump MSRV later down the line.Thanks for all the work you do! 😍
Alex
More context here: #1913 (comment)