Decision Workspace
clamped vs use-arithmetic vs math_library
Side-by-side comparison of Rust crates
49
clamped
growingv1.0.0
Simple clamping of numbers in Rust
58
use-arithmetic
experimentalv0.0.6
Utility-first arithmetic primitives for RustUse
56
math_library
growingv1.2.2
A simple math library
Core Metrics
| clamped | use-arithmetic | math_library | |
|---|---|---|---|
| Health Score | 49 | 58 | 56 |
| Total Downloads | 16.5K | 297 | 180 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 36 | 5 | 0 |
| Releases | 1 | 5 | 5 |
| Last Updated | 2677d ago | 148d ago | 330d ago |
| Age | 7y 4m | 4m | 11m |
Health Breakdown
clamped
Maintenance
1
Quality
24
Community
10
Popularity
5
Documentation
9
use-arithmetic
Maintenance
17
Quality
15
Community
8
Popularity
3
Documentation
15
math_library
Maintenance
14
Quality
19
Community
7
Popularity
3
Documentation
13
Technical Details
| clamped | use-arithmetic | math_library | |
|---|---|---|---|
| Version | 1.0.0 | 0.0.6 | 1.2.2 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | Unlicense |
| Dependencies | 0 | 0 | 0 |
| Crate Size | 5KB | 7KB | 2KB |
| Features | 5 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2024 | 2024 |
| MSRV | — | 1.95.0 | — |
| Owners | 1 | 1 | 2 |
Links
Quick Verdict
- •use-arithmetic leads with a health score of 58/100, but none of the options score above 80.
- •clamped has the most downloads (16.5K), suggesting wider adoption.
- •⚠ clamped has not been updated in over a year.
- •use-arithmetic is pre-1.0 — API may change.