Decision Workspace
dashu-int vs dashu-ratio vs dashu-float
Side-by-side comparison of Rust crates
Arbitrary-precision integer math library for Rust, balancing ergonomics and efficiency. Provides UBig and IBig (unsigned and signed), with small values inlined on the stack. Efficient arithmetic, modular arithmetic, and number theory (pow, ilog, gcd, gcd_ext); two's-complement bit operations; parsing and formatting in base 2-36; optional serde, rand, num-traits, rkyv, and zeroize.
Arbitrary-precision rational math library for Rust. Provides RBig and a relaxed variant for fast computation, with small values inlined on the stack. Exact arithmetic, Diophantine approximation of floats, parsing and formatting in any base including repeating-decimal notation, and conversions to and from other dashu types. Optional serde, rand, num-traits, rkyv, and zeroize.
Arbitrary-precision float math library for Rust with arbitrary base and arbitrary rounding mode. Provides FBig, DBig, and CachedFBig with efficient base conversion, the hexadecimal float format used by C++ programs, and parsing and formatting in base 2-36. Transcendentals (exp, ln, trig, hyperbolic, powers, roots, pi) are correctly rounded; optional serde, rand, num-traits, rkyv, and zeroize.
Core Metrics
| dashu-int | dashu-ratio | dashu-float | |
|---|---|---|---|
| Health Score | 64 | 67 | 65 |
| Total Downloads | 4.2M | 2.3M | 3.2M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 348 | 44 | 214 |
| Releases | 18 | 15 | 21 |
| Last Updated | 8d ago | 15d ago | 8d ago |
| Age | 4y 3m | 3y 11m | 4y |
Health Breakdown
Technical Details
| dashu-int | dashu-ratio | dashu-float | |
|---|---|---|---|
| Version | 0.6.2 | 0.6.1 | 0.6.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 22 | 22 | 27 |
| Crate Size | 227KB | 73KB | 311KB |
| Features | 7 | 14 | 18 |
| Yanked % | 5.6% | 0.0% | 4.8% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.68 | 1.68 | 1.68 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •dashu-ratio leads with a health score of 67/100, but none of the options score above 80.
- •dashu-int has the most downloads (4.2M), suggesting wider adoption.
- •dashu-int is depended on by 348 crates — strongest ecosystem trust.