Decision Workspace
ctor_bare vs ctor_bare_macros vs static_init
Side-by-side comparison of Rust crates
48
ctor_bare
growingv0.2.1
Register constructor functions for Rust at complie time under no_std.
42
ctor_bare_macros
growingv0.2.1
Macros for registering constructor functions for Rust under no_std.
57
static_init
growingv1.0.4
Safe mutable static and non const static initialization, and code execution at program startup/exit.
Core Metrics
| ctor_bare | ctor_bare_macros | static_init | |
|---|---|---|---|
| Health Score | 48 | 42 | 57 |
| Total Downloads | 236.7K | 236.9K | 10.3M |
| 30d Downloads | 66.8K | 66.9K | 399.1K |
| Dependents | 11 | 4 | 3.2K |
| Releases | 4 | 4 | 20 |
| Last Updated | 426d ago | 426d ago | 310d ago |
| Age | 1y 4m | 1y 4m | 5y 2m |
Health Breakdown
ctor_bare
Maintenance
5
Quality
15
Community
9
Popularity
6
Documentation
13
ctor_bare_macros
Maintenance
5
Quality
10
Community
8
Popularity
6
Documentation
13
static_init
Maintenance
8
Quality
14
Community
15
Popularity
8
Documentation
12
Technical Details
| ctor_bare | ctor_bare_macros | static_init | |
|---|---|---|---|
| Version | 0.2.1 | 0.2.1 | 1.0.4 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | GPL-3.0-or-later OR Apache-2.0 OR MulanPSL-2.0 | GPL-3.0-or-later OR Apache-2.0 OR MulanPSL-2.0 | MIT OR Apache-2.0 |
| Dependencies | 1 | 3 | 17 |
| Crate Size | 3KB | 3KB | 86KB |
| Features | 0 | 0 | 8 |
| Yanked % | 0.0% | 25.0% | 30.0% |
| Edition | 2024 | 2024 | 2021 |
| MSRV | — | — | 1.82 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •static_init leads with a health score of 57/100, but none of the options score above 80.
- •static_init is depended on by 3.2K crates — strongest ecosystem trust.
- •⚠ ctor_bare, ctor_bare_macros have not been updated in over a year.
- •ctor_bare, ctor_bare_macros are pre-1.0 — API may change.