Decision Workspace
static_init_macro vs static_init vs ax-lazyinit
Side-by-side comparison of Rust crates
49
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.
65
ax-lazyinit
experimentalv0.5.1
Initialize a static value lazily.
Core Metrics
| static_init_macro | static_init | ax-lazyinit | |
|---|---|---|---|
| Health Score | 49 | 56 | 65 |
| Total Downloads | 13.5M | 13.5M | 6.8K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 20 | 3.4K | 561 |
| Releases | 12 | 20 | 11 |
| Last Updated | 665d ago | 507d ago | 31d ago |
| Age | 5y 8m | 5y 8m | 6m |
Health Breakdown
static_init_macro
Maintenance
4
Quality
17
Community
10
Popularity
8
Documentation
10
static_init
Maintenance
7
Quality
14
Community
15
Popularity
8
Documentation
12
ax-lazyinit
Maintenance
17
Quality
15
Community
18
Popularity
5
Documentation
10
Technical Details
| static_init_macro | static_init | ax-lazyinit | |
|---|---|---|---|
| Version | 1.0.4 | 1.0.4 | 0.5.1 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | Apache-2.0 |
| Dependencies | 5 | 17 | 0 |
| Crate Size | 7KB | 86KB | 11KB |
| Features | 1 | 8 | 0 |
| Yanked % | 8.3% | 30.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | 1.82 | — |
| Owners | 1 | 1 | 2 (team) |
Links
Quick Verdict
- •ax-lazyinit leads with a health score of 65/100, but none of the options score above 80.
- •static_init_macro has the most downloads (13.5M), suggesting wider adoption.
- •static_init is depended on by 3.4K crates — strongest ecosystem trust.
- •⚠ static_init_macro, static_init have not been updated in over a year.
- •ax-lazyinit is pre-1.0 — API may change.