https://github.com/murphsicles/lazy_static
https://github.com/murphsicles/lazy_static
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/murphsicles/lazy_static
- Owner: murphsicles
- License: other
- Created: 2026-05-15T20:28:44.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-05-15T23:13:14.000Z (3 months ago)
- Last Synced: 2026-05-16T00:11:10.260Z (3 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @std/lazy_static — Lazy Statics for Zeta
Auto-converted from [lazy_static](https://crates.io/crates/lazy_static) v1.5.0 via [Dark Factory](https://github.com/murphsicles/dark-factory).
## Features
- **lazy_static!** — declarative lazy-initialized static variables
- **Thread-safe** — initialized once, safe to access across threads
- **Panic-safe** — on panic during init, subsequent access will retry
## Usage
```zeta
use @std/lazy_static::lazy_static;
lazy_static! {
static ref HASHMAP: HashMap = {
let mut m = HashMap::new();
m.insert(0, "foo");
m
};
}
```
## Stats: 3 source files, 87 lines, 0 unsupported items
## License
MIT