0.1.0 Dec 5, 2023

#173 in #std

MIT/Apache

7KB

simple-lazy

Crates.io API reference

A 40 lines wrapper of std::once::OnceLock that allows you to lazily initialize a value.

Most code is copied from once_cell but replace the implementation of once_cell OnceCell with std OnceLock.

MSRV

This crate is guaranteed to compile on stable Rust 1.70 and up.

It might be changed since once_cell_try is not stable yet.

No runtime deps