Decision Workspace
dashu-base vs dashu vs num-integer
Side-by-side comparison of Rust crates
Common trait definitions, error types, and utilities shared by the dashu math crates (integers, floats, rationals, and complex numbers). Defines the core abstractions the library builds on — Approximation, AbsOrd, Signed, SquareRoot, CubicRoot, EstimatedLog2, BitTest, and FloatEncoding — plus the Sign type and conversion errors.
A pure-Rust library set of arbitrary-precision numbers (big numbers) for math and numerics, a native alternative to GNU GMP + MPFR + MPC. Ergonomics and readability come first, with speed and memory usage optimized enough for real workloads. Full no_std, MSRV 1.68; integers, floats, rationals, and complex numbers with configurable precision and rounding, literal macros, and optional serde, rand, num-traits, rkyv, zeroize.
Integer traits and functions
Core Metrics
| dashu-base | dashu | num-integer | |
|---|---|---|---|
| Health Score | 68 | 68 | 67 |
| Total Downloads | 4.2M | 2.2M | 738.1M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 170 | 560 | 9.5K |
| Releases | 17 | 19 | 16 |
| Last Updated | 15d ago | 8d ago | 59d ago |
| Age | 4y 3m | 4y 3m | 10y 6m |
Health Breakdown
Technical Details
| dashu-base | dashu | num-integer | |
|---|---|---|---|
| Version | 0.6.1 | 0.6.2 | 0.1.47 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 6 | 1 |
| Crate Size | 29KB | 19KB | 24KB |
| Features | 2 | 17 | 3 |
| Yanked % | 0.0% | 5.3% | 0.0% |
| Edition | 2021 | 2021 | 2018 |
| MSRV | 1.68 | 1.68 | 1.31 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •dashu-base leads with a health score of 68/100, but none of the options score above 80.
- •num-integer has the most downloads (738.1M), suggesting wider adoption.
- •num-integer is depended on by 9.5K crates — strongest ecosystem trust.