Version Changes -------- -------------------------------------------------------------------- 0.11.0 Added impl of num_traits::Signed for Decimal. Set minimal rust version to 1.74.1. 0.10.3 Fixed issue #15. 0.10.2 Fixed issues #13 and #14. 0.10.1 Fixed issue #9. 0.10.0 Added impl Hash for Decimal. 0.9.0 Added conversion of Decimal values to primitive ints and floats. 0.8.0 Added optional support for zero-copy serialization via 'rkyv' (thx to den-mentiei). 0.7.0 Replaced impl Into for Decimal by impl From for String. 0.6.4 Code hygiene based on clippy hints. Changed CI job to use cargo-hack. 0.6.3 Added CI jobs for cargo check, test and clippy (thx to Roms1383). 0.6.0 Added support for serde: serialize to / deserialize from String. 0.5.4 Optimized conversion from string to Decimal. 0.5.3 Some code hygiene based on rustc and clippy lints. 0.5.2 Fixed errors in 'no_std' environment. 0.5.1 Changed internal fn, so that macro Dec! can be used in a const context. 0.5.0 Reduced MAX_N_FRAC_DIGITS to 18. If the exact result of Multiplication or Division would exceed MAX_N_FRAC_DIGITS, a result rounded to MAX_N_FRAC_DIGITS is returned instead of panicking. 0.4.1 Fixed mismatch between impl of PartialOrd and derived impl of Ord. 0.4.0 Added impls of trait DivRounded for native integers. Added traits AsIntegerRatio and Quantize as well as corresponding implementations for Decimal and native ints. 0.3.1 Check resulting n_frac_digits > MAX_N_FRAC_DIGITS in fn mul. 0.3.0 Added "checked" variants of Add, Div, Mul, Rem and Sub as well as corresponding implementations. 0.2.0 Added conversion from `f32` and `f64` to `Decimal`. 0.1.0 First public version.