Skip to content

rustsec: bump cargo-edit to v0.11; MSRV 1.64#801

Closed
tarcieri wants to merge 1 commit intomainfrom
rustsec/cargo-edit-v0.11
Closed

rustsec: bump cargo-edit to v0.11; MSRV 1.64#801
tarcieri wants to merge 1 commit intomainfrom
rustsec/cargo-edit-v0.11

Conversation

@tarcieri
Copy link
Copy Markdown
Member

No description provided.

@tarcieri tarcieri force-pushed the rustsec/cargo-edit-v0.11 branch from 0b352c0 to ddd6305 Compare January 25, 2023 00:26
@tarcieri tarcieri changed the title rustsec: bump cargo-edit to v0.11 rustsec: bump cargo-edit to v0.11; MSRV 1.64 Jan 25, 2023
@tarcieri tarcieri force-pushed the rustsec/cargo-edit-v0.11 branch from ddd6305 to e263d4e Compare January 25, 2023 00:32
@jonhoo
Copy link
Copy Markdown

jonhoo commented Jan 26, 2023

This also blocks updating the git2 (now at 0.16) and crates-index (now at 0.19) dependencies:

crates-index = { version = "0.18", optional = true }
git2 = { version = ">= 0.14, < 0.16", optional = true }

The git2 0.16 bump (like the 0.15 bump) is mostly backwards compatible, so we could just expand the range to >=0.15, <0.17 (like we did in #662), but given that crates-index 0.19 takes a git2 = "0.16" dependency, there wouldn't be an advantage to doing so as Cargo would always be forced to pick 0.16 anyway. 0.18.11 does permit all the versions of git2, so you could bump git2 first and then crates-index if you'd prefer to split them up.

The crates-index bump is just for a bump of toml and git2, so should be an easy upgrade.

@tarcieri
Copy link
Copy Markdown
Member Author

@jonhoo bumping git2 is blocked on cargo-edit updating from v0.14: killercup/cargo-edit#770

@tarcieri
Copy link
Copy Markdown
Member Author

tarcieri commented Jan 26, 2023

Also, this PR is blocked on finding a replacement for cargo_edit::LocalManfiest::upgrade, as used here

@jonhoo
Copy link
Copy Markdown

jonhoo commented Jan 26, 2023

Ah, great, thanks for the breadcrumb trail!

@jonhoo
Copy link
Copy Markdown

jonhoo commented Jan 26, 2023

Looks like cargo-edit bumped git2 yesterday in killercup/cargo-edit#833, it just hasn't been released to crates.io yet.

@tarcieri
Copy link
Copy Markdown
Member Author

Cool, hopefully there will be a release soon which will unblock the other updates

@jonhoo
Copy link
Copy Markdown

jonhoo commented Jan 26, 2023

Speak of the devil. 0.11.8 is out: https://crates.io/crates/cargo-edit/0.11.8

@tarcieri
Copy link
Copy Markdown
Member Author

Cool, so to get this over the line we just need to figure out a replacement for LocalManifest::upgrade as mentioned above

@jonhoo
Copy link
Copy Markdown

jonhoo commented Jan 26, 2023

If the implementation of it just uses publicly-available APIs, I guess you could just copy-paste that code from the old version?

@tarcieri
Copy link
Copy Markdown
Member Author

That calls update_table_named_entry which is also gone in the latest release

@tarcieri
Copy link
Copy Markdown
Member Author

I opened an issue here: killercup/cargo-edit#837

@jonhoo
Copy link
Copy Markdown

jonhoo commented Jan 26, 2023

So I guess the way to go (at least in the short term) then is to copy-paste in both the upgrade method and any other internal method dependencies. Long-term, it's to move away from depending on the library API of cargo-edit.

@pinkforest
Copy link
Copy Markdown
Contributor

I forked cargo-edit to cargo-edit-9 - we may just use that temporarily I guess
PR here:

@tarcieri tarcieri closed this Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants