simple-lazy

Crates.iosimple-lazy
lib.rssimple-lazy
version0.1.0
sourcesrc
created_at2023-12-05 07:35:24.518719
updated_at2023-12-05 07:35:24.518719
description40 Lines wrapper of std OnceLock
homepage
repositoryhttps://github.com/scroll-tech/simple-lazy
max_upload_size
id1058398
size17,110
Akase Haruka (lightsing)

documentation

https://docs.rs/simple-lazy

README

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.

Commit count: 0

cargo fmt