Decision Workspace
static_init_macro vs static_init vs lazyinit
Side-by-side comparison of Rust crates
50
static_init_macro
growingv1.0.4
Attribute macros for static_init crate
57
static_init
growingv1.0.4
Safe mutable static and non const static initialization, and code execution at program startup/exit.
60
lazyinit
growingv0.2.2
Initialize a static value lazily.
Core Metrics
| static_init_macro | static_init | lazyinit | |
|---|---|---|---|
| Health Score | 50 | 57 | 60 |
| Total Downloads | 10.3M | 10.3M | 100.6K |
| 30d Downloads | 409.0K | 411.8K | 9.4K |
| Dependents | 20 | 3.2K | 171 |
| Releases | 12 | 20 | 4 |
| Last Updated | 469d ago | 310d ago | 290d ago |
| Age | 5y 2m | 5y 2m | 1y 8m |
Health Breakdown
static_init_macro
Maintenance
5
Quality
17
Community
10
Popularity
8
Documentation
10
static_init
Maintenance
8
Quality
14
Community
15
Popularity
8
Documentation
12
lazyinit
Maintenance
6
Quality
16
Community
17
Popularity
6
Documentation
15
Technical Details
| static_init_macro | static_init | lazyinit | |
|---|---|---|---|
| Version | 1.0.4 | 1.0.4 | 0.2.2 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | GPL-3.0-or-later OR Apache-2.0 OR MulanPSL-2.0 |
| Dependencies | 5 | 17 | 0 |
| Crate Size | 7KB | 86KB | 5KB |
| Features | 1 | 8 | 0 |
| Yanked % | 8.3% | 30.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | 1.82 | 1.56.1 |
| Owners | 1 | 1 | 2 (team) |
Links
Quick Verdict
- •lazyinit leads with a health score of 60/100, but none of the options score above 80.
- •static_init_macro has the most downloads (10.3M), suggesting wider adoption.
- •static_init is depended on by 3.2K crates — strongest ecosystem trust.
- •⚠ static_init_macro has not been updated in over a year.
- •lazyinit is pre-1.0 — API may change.