Dinero is a Rust port of Dinero.js
Dinero lets you create, calculate, and format money in Rust.
docs.rs/dinero
sh
$ cargo add dinero
Dinero
objects are minimal. Every function in dinero.js
is side-effect free, allowing you only to bundle exactly what you use.
```rust use dinero::{api::add::add, currencies::USD, Dinero};
fn main() { let d1 = Dinero::new(500, USD, None); let d2 = Dinero::new(800, USD, None);
let result = add(&d1, &d2);
} ```