Skip to content

Conversation

@mrhrzg
Copy link

@mrhrzg mrhrzg commented Sep 19, 2025

By bumping the rust version to 1.80, the dependency on lazy_static becomes obsolete, see their docs. It is replaced with std::sync::LazyLock

@bikeshedder
Copy link
Collaborator

Sorry for the slow response. I just came around writing my reasoning why I haven't merged this, yet.

I usually try to follow the Tokio minimum Rust version: https://github.com/tokio-rs/tokio?tab=readme-ov-file#supported-rust-versions

  • Tokio currently supports Rust 1.71.
  • Rust 1.80 was released 2024-07-25

I guess it's safe to upgrade the minimum rust version to 1.80 but at the same time I hope this doesn't break any builds? Since I have a few smaller changes going which result in a breaking release anyways it might be a good time to bump the minimum rust version at the same time.

btw. also see the original PR where this was discussed a bit as well:

The PR originally used LazyLock as well and the author switched to lazy_static to honor the Rust 1.75 minimum version requirement.

@bikeshedder bikeshedder added A-core Area: Core / deadpool enhancement New feature or request labels Oct 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-core Area: Core / deadpool enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants