Skip to content

fix: prepare for edition 2024 #209

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

reneleonhardt
Copy link

@reneleonhardt reneleonhardt commented Jun 29, 2025

Fixes

  • cargo fix --edition (2021 -> 2024, but had to revert unstable expr_2021)
  • Some clippy warnings preventing CI to complete
  • Bump MSRV to 1.81.0 to allow dependency upgrades (criterion [bench], half [indirect])

Fixes #202

Copy link
Owner

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

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

One minor issue, otherwise this looks great. Thank you for filing this!

Cargo.toml Outdated
Comment on lines 43 to 45
[patch.crates-io]
half = { version = "2.4.1", git = "https://github.com/VoidStarKat/half-rs.git", tag = "v2.4.1" }

Copy link
Owner

Choose a reason for hiding this comment

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

Can you remove this?

Copy link
Author

@reneleonhardt reneleonhardt Jun 30, 2025

Choose a reason for hiding this comment

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

Downgrade indirect dependency half to 2.4.1 (2.5.0 requires MSRV 1.81.0)

Half upgraded to MSRV 1.81.0, that's why I had to downgrade it.
Would you like me to upgrade here too from 1.75.0?
Then I could remove this patch.
https://crates.io/crates/half/versions

Edition 2024 would require 1.85.0.

Screenshot 2025-06-30 at 10 52 03

Copy link
Author

Choose a reason for hiding this comment

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

Bumping to MRSV 1.81.0 allowed me to upgrade the last two outdated dependencies, is that ok?

Copy link
Owner

Choose a reason for hiding this comment

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

I see, thank you for clarifying. I have no objections to bumping the MSRV, but want to check with @matheus-consoli who introduced the MSRV checks before approving this.

Copy link
Author

Choose a reason for hiding this comment

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

The alternative were to move benches into a separate create.
There you could manage the MSRV separately from release dependencies (half is an indirect dependency of criterion).

@reneleonhardt
Copy link
Author

I saw that even more exotic runtimes like monoio are compatible, cool!

Would it help your users to provide a more complete list of compatible runtimes like tokio-uring and test them internally?
Or are practically all runtimes supported anyway because this lib can't fail because of any runtime implementation?

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.

Fix macro rules in accordance with edition 2024
2 participants