Decision Workspace
cfg-or-panic vs trait-gen vs hadris-macros
Side-by-side comparison of Rust crates
37
cfg-or-panic
growingv0.2.1
Replace function bodies with `unimplemented!()` when condition is not met.
67
trait-gen
stablev2.0.10
Trait implementation generator macro
65
hadris-macros
growingv2.5.0
Proc macros for dual sync/async code generation in Hadris
Core Metrics
| cfg-or-panic | trait-gen | hadris-macros | |
|---|---|---|---|
| Health Score | 37 | 67 | 65 |
| Total Downloads | 387.3K | 184.2K | 25.1K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 14 | 135 |
| Releases | 4 | 30 | 20 |
| Last Updated | 872d ago | 16d ago | 3d ago |
| Age | 3y 1m | 3y 7m | 7m |
Health Breakdown
cfg-or-panic
Maintenance
4
Quality
10
Community
6
Popularity
7
Documentation
10
trait-gen
Maintenance
18
Quality
20
Community
8
Popularity
6
Documentation
15
hadris-macros
Maintenance
19
Quality
18
Community
11
Popularity
5
Documentation
12
Technical Details
| cfg-or-panic | trait-gen | hadris-macros | |
|---|---|---|---|
| Version | 0.2.1 | 2.0.10 | 2.5.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 3 | 5 | 1 |
| Crate Size | 8KB | 31KB | 3KB |
| Features | 0 | 2 | 0 |
| Yanked % | 25.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | 1.61.0 | 1.88.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •trait-gen leads with a health score of 67/100, but none of the options score above 80.
- •cfg-or-panic has the most downloads (387.3K), suggesting wider adoption.
- •hadris-macros is depended on by 135 crates — strongest ecosystem trust.
- •⚠ cfg-or-panic has not been updated in over a year.
- •cfg-or-panic is pre-1.0 — API may change.