Decision Workspace
commodity vs rust_decimal vs rust_decimal_macros
Side-by-side comparison of Rust crates
42
commodity
growingv0.4.0
A library for representing commodities/currencies, and exchange rates/conversions between them.
74
rust_decimal
stablev1.43.0
Decimal number implementation written in pure Rust suitable for financial and fixed-precision calculations.
68
rust_decimal_macros
growingv1.40.0
Shorthand macros to assist creating Decimal types.
Core Metrics
| commodity | rust_decimal | rust_decimal_macros | |
|---|---|---|---|
| Health Score | 42 | 74 | 68 |
| Total Downloads | 21.3K | 155.9M | 22.6M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 14 | 34.1K | 5.9K |
| Releases | 14 | 107 | 71 |
| Last Updated | 2305d ago | 38d ago | 269d ago |
| Age | 6y 7m | 9y 10m | 8y 11m |
Health Breakdown
commodity
Maintenance
4
Quality
15
Community
9
Popularity
5
Documentation
9
rust_decimal
Maintenance
18
Quality
18
Community
15
Popularity
8
Documentation
15
rust_decimal_macros
Maintenance
11
Quality
21
Community
15
Popularity
8
Documentation
13
Technical Details
| commodity | rust_decimal | rust_decimal_macros | |
|---|---|---|---|
| Version | 0.4.0 | 1.43.0 | 1.40.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | MIT | MIT |
| Dependencies | 9 | 37 | 3 |
| Crate Size | 12KB | 170KB | 15KB |
| Features | 2 | 32 | 2 |
| Yanked % | 0.0% | 0.9% | 1.4% |
| Edition | 2018 | 2021 | 2021 |
| MSRV | — | 1.67.1 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •rust_decimal leads with a health score of 74/100, but none of the options score above 80.
- •rust_decimal is depended on by 34.1K crates — strongest ecosystem trust.
- •⚠ commodity has not been updated in over a year.
- •commodity is pre-1.0 — API may change.