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.42.1
Decimal number implementation written in pure Rust suitable for financial and fixed-precision calculations.
69
rust_decimal_macros
stablev1.40.0
Shorthand macros to assist creating Decimal types.
Core Metrics
| commodity | rust_decimal | rust_decimal_macros | |
|---|---|---|---|
| Health Score | 42 | 74 | 69 |
| Total Downloads | 21.1K | 118.2M | 16.2M |
| 30d Downloads | 0 | 5.9M | 1.2M |
| Dependents | 14 | 26.9K | 4.9K |
| Releases | 14 | 106 | 71 |
| Last Updated | 2217d ago | 32d ago | 180d ago |
| Age | 6y 4m | 9y 8m | 8y 8m |
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
12
Quality
21
Community
15
Popularity
8
Documentation
13
Technical Details
| commodity | rust_decimal | rust_decimal_macros | |
|---|---|---|---|
| Version | 0.4.0 | 1.42.1 | 1.40.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | MIT | MIT |
| Dependencies | 9 | 38 | 3 |
| Crate Size | 12KB | 166KB | 15KB |
| Features | 2 | 33 | 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 26.9K crates — strongest ecosystem trust.
- •⚠ commodity has not been updated in over a year.
- •commodity is pre-1.0 — API may change.