Skip to content
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

Bump proc-macro-hack to 0.5.18 #2

Merged
merged 1 commit into from
Aug 27, 2020

Conversation

Aaron1011
Copy link
Contributor

Your crate currently depends on an older version of proc-macro-hack
which is buggy, and will stop compiling in a future release of Rust.
See rust-lang/rust#74616 for more details.

Your crate currently depends on an older version of proc-macro-hack
which is buggy, and will stop compiling in a future release of Rust.
See rust-lang/rust#74616 for more details.
@moritzheiber
Copy link
Owner

@Aaron1011 I'm not depending on proc-macro-hack directly, but rather it's a transitive dependency. Shouldn't the dependencies rather bump their version constraints instead of me "manually" adjusting Cargo.lock?

(PS: Thank you for making the effort!)

@Aaron1011
Copy link
Contributor Author

Aaron1011 commented Aug 26, 2020

@moritzheiber: The crates which directly depend on proc-macro-hack are all libraries, so they don't have a Cargo.lock committed. They could make a new release which just bumped the version of proc-macro-hack in use, but this would have no effect on their own CI (which will already be using the latest version).

This is a somewhat odd situation, since the library itself doesn't actually need a newer version of proc-macro-hack - it's that the overall dependency graph shouldn't contain an older version of proc-macro-hack. Normally, a version bump is for the benefit of downstream crates, but here's it's just to make sure that we don't try to compile a crate (older version of proc-macro-hack) that will eventually stop building with a newer compiler.

I've chosen to send pull requests to only 'leaf' crates (those with a Cargo.lock) to minimize the number of total crates that need to change. If I updated the Cargo.tomls in library crates that directly pull in proc-macro-hack, downstream crates (like crowbar) would still need to update their Cargo.lock files. However, several other crates would either need to make a contentless point release (just updating the Cargo.toml), or wait for enough content for a meaningful point release.

Let me know if you have any other questions. Thanks for your help in getting the ecosystem updated!

@moritzheiber moritzheiber merged commit c8a39c3 into moritzheiber:master Aug 27, 2020
@moritzheiber
Copy link
Owner

@Aaron1011 Oh, that makes sense, I wasn't aware of the convention to not pin library dependencies. Interesting.

Thanks for your PR then!

@Aaron1011 Aaron1011 deleted the bump-proc-macro-hack branch August 28, 2020 02:52
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.

2 participants