Decision Workspace
dashu-macros vs dashu-ratio vs dashu-float
Side-by-side comparison of Rust crates
Procedural macros for the dashu math types: create big-number literals at compile time with ubig!, ibig!, fbig!, dbig!, rbig!, and cbig! (plus their static_ variants for const contexts). Each literal follows the same parsing rules as the corresponding dashu type, producing values of UBig, IBig, FBig, RBig, or CBig in any supported base.
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-macros | dashu-ratio | dashu-float | |
|---|---|---|---|
| Health Score | 63 | 67 | 65 |
| Total Downloads | 2.2M | 2.3M | 3.2M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 24 | 44 | 214 |
| Releases | 13 | 15 | 21 |
| Last Updated | 15d ago | 15d ago | 8d ago |
| Age | 4y | 3y 11m | 4y |
Health Breakdown
Technical Details
| dashu-macros | dashu-ratio | dashu-float | |
|---|---|---|---|
| Version | 0.6.1 | 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 | 8 | 22 | 27 |
| Crate Size | 18KB | 73KB | 311KB |
| Features | 0 | 14 | 18 |
| Yanked % | 0.0% | 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-float has the most downloads (3.2M), suggesting wider adoption.
- •dashu-float is depended on by 214 crates — strongest ecosystem trust.