Re-write from lazy_static to LazyLock.
From Rust 1.80, LazyLock
is now part of the stable channel. To be honest, it is the first time I realized the Rust team was trying to stabilize the lazy_static
feature. This is great news because I have been using lazy_static
in some of my projects, and I am eager to rewrite them using LazyLock
(LazyCell
).