Decision Workspace
const-gen-derive vs const-gen vs map-to-const
Side-by-side comparison of Rust crates
63
const-gen-derive
stablev1.1.7
A derive macro for the const-gen crate.
68
const-gen
stablev1.6.9
A crate for generating (relatively) complex compile-time constants in rust.
40
map-to-const
growingv0.2.0
Easily convert HashMap<K, V> to constant [(K, V); N] values.
Core Metrics
| const-gen-derive | const-gen | map-to-const | |
|---|---|---|---|
| Health Score | 63 | 68 | 40 |
| Total Downloads | 284.6K | 321.8K | 2.9K |
| 30d Downloads | 26.5K | 26.8K | 5 |
| Dependents | 45 | 34 | 0 |
| Releases | 16 | 45 | 2 |
| Last Updated | 37d ago | 37d ago | 1469d ago |
| Age | 4y 11m | 4y 11m | 4y |
Health Breakdown
const-gen-derive
Maintenance
16
Quality
17
Community
11
Popularity
7
Documentation
12
const-gen
Maintenance
17
Quality
22
Community
10
Popularity
7
Documentation
12
map-to-const
Maintenance
3
Quality
14
Community
6
Popularity
4
Documentation
13
Technical Details
| const-gen-derive | const-gen | map-to-const | |
|---|---|---|---|
| Version | 1.1.7 | 1.6.9 | 0.2.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 3 | 2 | 4 |
| Crate Size | 4KB | 11KB | 13KB |
| Features | 0 | 5 | 0 |
| Yanked % | 6.3% | 2.2% | 0.0% |
| Edition | 2018 | 2018 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •const-gen leads with a health score of 68/100, but none of the options score above 80.
- •⚠ map-to-const has not been updated in over a year.
- •map-to-const is pre-1.0 — API may change.