Skip to content

Releases: varunsrin/rusty_money

v0.4.1

16 Jan 16:52
4c1e568
Compare
Choose a tag to compare
  • ISO: Fixed symbols for BHD, ISK, NPR, UYU and alpha code for UYW.
  • ISO: Added ALL, STN, UYW currencies @ObsceneGiraffe.
  • Crypto: Added COMP, DAI, MKR, UNI, USDC, USDT, XTZ, ZEC
  • Fix: Exchange::get_rate returns a lifetime Option<ExchangeRate<'a, T>> to prevent lifetime conflicts @RestitutorOrbis.

v0.4.0

01 Jan 22:45
ed1f299
Compare
Choose a tag to compare

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!

  • define_currency_set! allows you to create your own custom currency modules. @jimpo
  • CryptoCurrencies (Bitcoin, Ethereum) are now available in the crypto module.
  • Removed dependency on lazy_static! and made library thread safe.

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.
  • The old Currency module is now called 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.

v0.3.6

01 Jan 20:26
82c487a
Compare
Choose a tag to compare
  • Upgraded dependencies.

v0.3.5

01 Jan 20:25
1cd151e
Compare
Choose a tag to compare
  • Bugfix: Incorrect metadata for CZK, HUF, ZMK [@zacharra]
  • Feature: Money objects can be multiplied by Decimals [@sjoerdsimons]