Exchange::get_rate
returns a lifetime Option<ExchangeRate<'a, T>>
to prevent lifetime conflicts @RestitutorOrbis.Published by varunsrin almost 4 years ago
rusty_money now supports defining your own currencies and has a cryptocurrency module. It no longer depends on lazy_static!,
is a bit faster and and simpler to use. Many breaking changes were needed to support this, so upgrade with care!
crypto
module.Breaking Changes:
Money::new
was deprecated, please use Money::from_minor
instead.Money::from_str()
accepts a currency reference iso::USD
instead of string "USD"
.Money
requires lifetime and currency type annotiations.money!
macro was deprecated, please use Money::from_str
instead.Currency::get()
was deprecated, please reference currencies directly by their module like iso::USD
.iso::Currency
.Currency::from_string
is now iso::find
and accepts &str
instead of String
@ObsceneGiraffe.ExchangeRate::add_or_update_rate
was deprecated, please use ExchangeRate::set_rate
instead. @jimpo.Published by varunsrin almost 4 years ago