#static-init #initializer #no-alloc

no-std static_initializer

Global non-lazy zero-cost statics without const fn

1 unstable release

0.1.0 Dec 28, 2024

#818 in Memory management

Custom license

17KB

Global non-lazy zero-cost statics without const fn.

Useful for static values that cannot be initialized through const fn but cannot incur the memory & performance cost of a std::sync::LazyLock.

no_std support

this crate is no_std.


static initializer

Blazingly fast statics!

Dependencies

~160–570KB
~14K SLoC