dinero 0.0.2

Dinero lets you express monetary values. You can perform mutations, conversions, comparisons, format them extensively, and overall make money manipulation in your application easier and safer.
Documentation
dinero-0.0.2 has been yanked.

📦 Install

$ cargo add dinero

⚡️ Quick start

Dinero objects are minimal. Every function in dinero.js is side-effect free, allowing you only to bundle exactly what you use.

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);
}

📜 License

MIT