Decision Workspace
common_traits vs calc_rational vs num-dual
Side-by-side comparison of Rust crates
56
common_traits
growingv0.12.0
Traits to write generic functions on different numeric types, with atomic support, and other features.
66
calc_rational
stablev3.0.0
CLI calculator for rational numbers.
64
num-dual
growingv0.13.6
Generalized (hyper) dual numbers for the calculation of exact (partial) derivatives
Core Metrics
| common_traits | calc_rational | num-dual | |
|---|---|---|---|
| Health Score | 56 | 66 | 64 |
| Total Downloads | 130.5K | 23.4K | 101.1K |
| 30d Downloads | 10.0K | 38 | 5.9K |
| Dependents | 148 | 0 | 201 |
| Releases | 37 | 23 | 32 |
| Last Updated | 269d ago | 7d ago | 19d ago |
| Age | 3y 1m | 2y 11m | 4y 8m |
Health Breakdown
common_traits
Maintenance
10
Quality
17
Community
13
Popularity
6
Documentation
10
calc_rational
Maintenance
19
Quality
21
Community
6
Popularity
5
Documentation
15
num-dual
Maintenance
19
Quality
13
Community
14
Popularity
6
Documentation
12
Technical Details
| common_traits | calc_rational | num-dual | |
|---|---|---|---|
| Version | 0.12.0 | 3.0.0 | 0.13.6 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 6 | 10 |
| Crate Size | 72KB | 36KB | 258KB |
| Features | 5 | 3 | 3 |
| Yanked % | 0.0% | 0.0% | 3.1% |
| Edition | 2021 | 2024 | 2024 |
| MSRV | — | 1.93.1 | 1.87 |
| Owners | 2 | 1 | 2 |
Links
Quick Verdict
- •calc_rational leads with a health score of 66/100, but none of the options score above 80.
- •common_traits has the most downloads (130.5K), suggesting wider adoption.
- •num-dual is depended on by 201 crates — strongest ecosystem trust.
- •common_traits, num-dual are pre-1.0 — API may change.