Decision Workspace
const-units vs dims vs const-gen
Side-by-side comparison of Rust crates
42
const-units
growingv0.1.3
A library that lets you check the dimensions of your quantities at compile time and run time
40
dims
growingv0.5.1
Unit-Aware Types Library
68
const-gen
stablev1.6.9
A crate for generating (relatively) complex compile-time constants in rust.
Core Metrics
| const-units | dims | const-gen | |
|---|---|---|---|
| Health Score | 42 | 40 | 68 |
| Total Downloads | 5.2K | 9.2K | 321.8K |
| 30d Downloads | 7 | 9 | 25.5K |
| Dependents | 0 | 0 | 34 |
| Releases | 4 | 7 | 45 |
| Last Updated | 834d ago | 644d ago | 37d ago |
| Age | 2y 3m | 4y 2m | 4y 11m |
Health Breakdown
const-units
Maintenance
5
Quality
17
Community
6
Popularity
4
Documentation
10
dims
Maintenance
4
Quality
18
Community
3
Popularity
5
Documentation
10
const-gen
Maintenance
17
Quality
22
Community
10
Popularity
7
Documentation
12
Technical Details
| const-units | dims | const-gen | |
|---|---|---|---|
| Version | 0.1.3 | 0.5.1 | 1.6.9 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 3 | 2 | 2 |
| Crate Size | 13KB | 8KB | 11KB |
| Features | 4 | 7 | 5 |
| Yanked % | 0.0% | 0.0% | 2.2% |
| Edition | 2021 | 2021 | 2018 |
| 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.
- •⚠ const-units, dims have not been updated in over a year.
- •const-units, dims are pre-1.0 — API may change.