Skip to content

Conversation

@Expyron
Copy link

@Expyron Expyron commented Jun 15, 2025

Since Rust 1.80, the recommended way to have lazily-initialized statics is to use LazyLock.

As this crate's MSRV is 1.81, this PR updates the documentation to encourage that new usage.

This is a change to examples and documentation only.
Once this PR is merged, I'll make another PR updating the internal uses of lazy_static within this crate.

@ti-chi-bot
Copy link

ti-chi-bot bot commented Jun 15, 2025

Welcome @Expyron! It looks like this is your first PR to tikv/rust-prometheus 🎉

@ThomasHabets
Copy link
Contributor

#556 does this plus remove the dependency on lazy_static alltogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants