#static #initializer #init #const-fn #no-alloc

no-std static_initializer

Global non-lazy zero-cost statics without const fn

1 unstable release

0.1.0 Dec 28, 2024

#287 in Memory management

Download history 125/week @ 2024-12-27 1/week @ 2025-01-03 1/week @ 2025-01-10

127 downloads per month

Custom license

17KB

static initializer

Blazingly fast statics!


lib.rs:

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.

Dependencies

~215–660KB
~16K SLoC