use-money
Money primitives pairing amounts and currencies for RustUse finance crates.
use-money combines a scaled integer Amount with a validated CurrencyCode and provides checked arithmetic only when currencies match.
Example
use Amount;
use CurrencyCode;
use Money;
let usd = new?;
let left = new;
let right = new;
assert_eq!;
# Ok::
Scope
Use this crate for currency-safe money values and checked same-currency addition/subtraction. It does not provide exchange rates, rounding policy engines, tax calculations, live financial data, or formatting by locale.
License
Licensed under either MIT or Apache-2.0.