Decision Workspace
constrained_int vs muldiv vs assert-within
Side-by-side comparison of Rust crates
37
constrained_int
growingv0.2.3
Integers that are constrained within inclusive ranges.
57
muldiv
growingv1.0.1
Provides a trait for numeric types to perform combined multiplication and division with overflow protection
49
assert-within
experimentalv0.1.4
Macro for testing that (generic) floating point numbers are within some tolerance
Core Metrics
| constrained_int | muldiv | assert-within | |
|---|---|---|---|
| Health Score | 37 | 57 | 49 |
| Total Downloads | 8.6K | 7.2M | 3.2K |
| 30d Downloads | 7 | 393.0K | 51 |
| Dependents | 0 | 185 | 14 |
| Releases | 7 | 6 | 5 |
| Last Updated | 1219d ago | 1246d ago | 99d ago |
| Age | 3y 8m | 10y 1m | 11m |
Health Breakdown
constrained_int
Maintenance
4
Quality
10
Community
5
Popularity
5
Documentation
13
muldiv
Maintenance
7
Quality
20
Community
13
Popularity
8
Documentation
9
assert-within
Maintenance
13
Quality
14
Community
8
Popularity
4
Documentation
10
Technical Details
| constrained_int | muldiv | assert-within | |
|---|---|---|---|
| Version | 0.2.3 | 1.0.1 | 0.1.4 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT | MIT OR Apache-2.0 |
| Dependencies | 4 | 1 | 1 |
| Crate Size | 38KB | 5KB | 3KB |
| Features | 2 | 0 | 0 |
| Yanked % | 42.9% | 0.0% | 0.0% |
| Edition | 2021 | 2018 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 2 | 1 |
Links
Quick Verdict
- •muldiv leads with a health score of 57/100, but none of the options score above 80.
- •muldiv is depended on by 185 crates — strongest ecosystem trust.
- •⚠ constrained_int, muldiv have not been updated in over a year.
- •constrained_int, assert-within are pre-1.0 — API may change.