Decision Workspace
const-arithmetic vs const-gen vs muldiv
Side-by-side comparison of Rust crates
40
const-arithmetic
growingv1.0.4
Exploits Rust's type generic system to perform integer arithmetics at compile time.
69
const-gen
stablev1.6.10
A crate for generating (relatively) complex compile-time constants in rust.
57
muldiv
growingv1.0.1
Provides a trait for numeric types to perform combined multiplication and division with overflow protection
Core Metrics
| const-arithmetic | const-gen | muldiv | |
|---|---|---|---|
| Health Score | 40 | 69 | 57 |
| Total Downloads | 6.3K | 602.3K | 12.1M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 37 | 199 |
| Releases | 5 | 46 | 6 |
| Last Updated | 1214d ago | 12d ago | 1443d ago |
| Age | 3y 4m | 5y 5m | 10y 7m |
Health Breakdown
const-arithmetic
Maintenance
4
Quality
15
Community
6
Popularity
5
Documentation
10
const-gen
Maintenance
18
Quality
22
Community
10
Popularity
7
Documentation
12
muldiv
Maintenance
7
Quality
20
Community
13
Popularity
8
Documentation
9
Technical Details
| const-arithmetic | const-gen | muldiv | |
|---|---|---|---|
| Version | 1.0.4 | 1.6.10 | 1.0.1 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 1 | 2 | 1 |
| Crate Size | 28KB | 11KB | 5KB |
| Features | 0 | 5 | 0 |
| Yanked % | 20.0% | 2.2% | 0.0% |
| Edition | 2021 | 2018 | 2018 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 2 |
Links
Quick Verdict
- •const-gen leads with a health score of 69/100, but none of the options score above 80.
- •muldiv has the most downloads (12.1M), suggesting wider adoption.
- •muldiv is depended on by 199 crates — strongest ecosystem trust.
- •⚠ const-arithmetic, muldiv have not been updated in over a year.