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
56
static_init
growingv1.0.4
Safe mutable static and non const static initialization, and code execution at program startup/exit.
63
lazyinit
growingv0.2.2
Initialize a static value lazily.
Core Metrics
| static_init_macro | static_init | lazyinit | |
|---|---|---|---|
| Health Score | 50 | 56 | 63 |
| Total Downloads | 11.1M | 11.1M | 119.3K |
| 30d Downloads | 369.4K | 368.2K | 7.0K |
| Dependents | 20 | 3.2K | 186 |
| Releases | 12 | 20 | 5 |
| Last Updated | 528d ago | 369d ago | 54d ago |
| Age | 5y 4m | 5y 4m | 1y 10m |
Health Breakdown
static_init_macro
Maintenance
5
Quality
17
Community
10
Popularity
8
Documentation
10
static_init
Maintenance
7
Quality
14
Community
15
Popularity
8
Documentation
12
lazyinit
Maintenance
14
Quality
11
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% | 20.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 63/100, but none of the options score above 80.
- •static_init_macro has the most downloads (11.1M), suggesting wider adoption.
- •static_init is depended on by 3.2K crates — strongest ecosystem trust.
- •⚠ static_init_macro, static_init have not been updated in over a year.
- •lazyinit is pre-1.0 — API may change.