-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
memchr
v2.6.0 broke 1.20/1.25 tokio LTS MSRVs
#5957
Comments
Pinning has negative impacts on dependency resolution. Switching to libc memchr seems better to me. Thoughts? |
Users who need to compile on Tokio's MSRV may also wish to compile with I agree with @Darksonn that pinning in Tokio itself is not great, and that backporting the change to depend on libc's |
I'm a +1 w/ @darkson as well |
Agreed, pinning breaks cargo in some unfortunate ways. Downstream projects with an old MSRV should check in a Cargo.lock that works with that MSRV (e.g. for one of my projects: https://github.com/sunshowers-code/debug-ignore/blob/47a911cefdba591b75fba4a3c8e208558d11ebfd/Cargo.lock.rust134) |
Makes sense to me - the change to drop the dependency and use libc was pretty trivial, backporting it should be pretty low-risk. |
The
memchr
project's MSRV guidelines mention that MSRVs are only supported across patch versions, not minor versions. Tokio 1.27 switched to libc memchr (in #5558), dropping the dependency, but the 1.20/1.25 LTS releases depend on memchr via simplymemchr = "2.2"
. Thus, the MSRV is liable to be broken on any minor release ofmemchr
, which finally happened today with thememchr
2.6.0 release. I understand this may not be supported and pinning is pretty easy on the building end, but this isn't architecture-specific, and impacts all users of theio-util
feature and would be pretty easy to pin the dependency directly in the LTS releases.The text was updated successfully, but these errors were encountered: