Skip to content

refactor: replace lazy_static with LazyLock - #46

Merged
augustoccesar merged 2 commits into
Mollemoll:mainfrom
augustoccesar:augustoccesar/replace-lazy-static-with-lazy-lock
Jan 8, 2026
Merged

refactor: replace lazy_static with LazyLock#46
augustoccesar merged 2 commits into
Mollemoll:mainfrom
augustoccesar:augustoccesar/replace-lazy-static-with-lazy-lock

Conversation

@augustoccesar

Copy link
Copy Markdown
Collaborator

For the use-case that we have here, using the Rust 1.80 feature LazyLock is enough and allow to remove dependency on lazy_static.

References:

For the use-case that we have here, using the Rust 1.80 feature LazyLock is enough and
allow to remove dependency on `lazy_static`.

References:
- https://doc.rust-lang.org/std/sync/struct.LazyLock.html
- https://github.com/rust-lang-nursery/lazy-static.rs?tab=readme-ov-file#standard-library
@augustoccesar
augustoccesar merged commit 519c6ab into Mollemoll:main Jan 8, 2026
4 checks passed
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