§lazier_static
A thin wrapper around std::sync::OnceLock providing cached, static, lazy initialization.
use lazier_static::*;
lazier_static! {
fn hello_world() -> &str {
"Hello, World!"
}
}
fn main() {
println!("{}", hello_world());
}
§License
MIT OR Apache-2.0