LocalStatic
LocalStatic
is a interior mutable library that provides a way to store variables in static storage, allowing initialization at compile time and being unsafe-friendly for embedded programs.
Using LocalStatic
in a multi-threaded or multi-core environment is extremely dangerous. Please use other thread-safe libraries such as lazy_static, once_cell, etc.
Usage
use LocalStatic;