Decision Workspace
num-complex vs dashu-base vs dashu
Side-by-side comparison of Rust crates
Complex numbers implementation for Rust
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.
Core Metrics
| num-complex | dashu-base | dashu | |
|---|---|---|---|
| Health Score | 61 | 68 | 68 |
| Total Downloads | 408.5M | 4.2M | 2.2M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 11.5K | 170 | 560 |
| Releases | 26 | 17 | 19 |
| Last Updated | 623d ago | 15d ago | 8d ago |
| Age | 10y 6m | 4y 3m | 4y 3m |
Health Breakdown
Technical Details
| num-complex | dashu-base | dashu | |
|---|---|---|---|
| Version | 0.4.6 | 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 | 6 | 3 | 6 |
| Crate Size | 30KB | 29KB | 19KB |
| Features | 8 | 2 | 17 |
| Yanked % | 0.0% | 0.0% | 5.3% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.60 | 1.68 | 1.68 |
| 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-complex has the most downloads (408.5M), suggesting wider adoption.
- •num-complex is depended on by 11.5K crates — strongest ecosystem trust.
- •⚠ num-complex has not been updated in over a year.