Skip to content

Bump clap-cargo and cargo_metadata versions.#6873

Merged
Manishearth merged 1 commit intorust-lang:mainfrom
thunderseethe:main
Apr 20, 2026
Merged

Bump clap-cargo and cargo_metadata versions.#6873
Manishearth merged 1 commit intorust-lang:mainfrom
thunderseethe:main

Conversation

@thunderseethe
Copy link
Copy Markdown
Contributor

clap-cargo 0.12.0 -> 0.18.3
cargo_metadata 0.18 -> 0.23

Ran cargo test locally and all tests are passing.

clap-cargo 0.12.0 -> 0.18.3
cargo_metadata 0.18 -> 0.23
@rustbot rustbot added the S-waiting-on-review Status: awaiting review from the assignee but also interested parties. label Apr 20, 2026
@ytmimi
Copy link
Copy Markdown
Contributor

ytmimi commented Apr 20, 2026

Why are we updating these versions? The rational isn't clearly articulated in the PR description.

@ytmimi
Copy link
Copy Markdown
Contributor

ytmimi commented Apr 20, 2026

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: awaiting review from the assignee but also interested parties. labels Apr 20, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 20, 2026

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@ytmimi
Copy link
Copy Markdown
Contributor

ytmimi commented Apr 20, 2026

Also, just checking the tests isn't enough in my opinion. Are there any breaking changes mentioned in the changelogs for clap-cargo and cargo_metadata that would change behavior for rustfmt?

@ytmimi ytmimi self-assigned this Apr 20, 2026
@thunderseethe
Copy link
Copy Markdown
Contributor Author

Rationale is mostly around using more recent editions of the crate. I work in a mono repo, so rustfmt relying on older versions of the crate requires the rest of our rust code to rely on that same version. I'm also operating under the assumption these version bumps are innocuous. If we're concerned they could cause more substantial breakages, I can find a different workaround vs bumping the versions here.

I took a look at the changelogs for clap-cargo and cargo_metadata and the biggest changes appear to be shifts in MSRV with clap-cargo now requiring MSRV 1.86 (and cargo_metadata requiring MSRV 1.56). Possible this could be a problem for rustfmt given how widely used it is in the ecosystem. Does CI check for MSRV coverage?

Copy link
Copy Markdown
Member

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to keep these up to date

View changes since this review

@Manishearth Manishearth merged commit e59ad98 into rust-lang:main Apr 20, 2026
26 checks passed
@rustbot rustbot added release-notes Needs an associated changelog entry and removed S-waiting-on-author Status: awaiting some action (such as code changes or more information) from the author. labels Apr 20, 2026
@Manishearth
Copy link
Copy Markdown
Member

I went through the changelogs for the two crates and didn't find anything big.

Possible this could be a problem for rustfmt given how widely used it is in the ecosystem

Rustfmt isn't really used as a crate (I think it's no longer released on crates.io, even), so MSRV isn't a problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes Needs an associated changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants