#state #static #interior-mutability #singleton #initialization #zero-cost #statically-checked

qcontext

One-time initializable static state with statically-checked zero-cost interior mutability

5 releases (breaking)

0.5.0 Oct 26, 2024
0.4.0 Mar 25, 2024
0.3.0 Mar 25, 2024
0.2.0 Mar 25, 2024
0.1.0 Mar 25, 2024

#1351 in Rust patterns

Download history 1/week @ 2024-09-17 8/week @ 2024-09-24 108/week @ 2024-10-22 12/week @ 2024-10-29

120 downloads per month

MIT license

7KB
131 lines

QContext

License Cargo Documentation

! QContext provides one-time initializable static state with statically-checked zero-cost interior mutability via a singleton borrow-owner created during initialization

Dependencies

~0.8–28MB
~354K SLoC