- Upgrade to 2018 edition, MSRV 1.31
- The
Integer::dividesmethod is now properly deprecated, rather than just documented so. - The new
Integer::decandincmethods change the value by one.
Contributors: @aobatact, @cuviper, @hkBst, @MiguelX413
Integer::next_multiple_ofandprev_multiple_ofno longer overflow -1.Integer::is_multiple_ofnow handles a 0 argument without panicking for primitive integers.ExtendedGcdno longer has any private fields, making it possible for external implementations to customizeInteger::extended_gcd.
Contributors: @ciphergoth, @cuviper, @tspiteri, @WizardOfMenlo
- The "i128" feature now bypasses compiler probing. The build script
used to probe anyway and panic if requested support wasn't found, but
sometimes this ran into bad corner cases with
autocfg.
Contributors: @cuviper
- The new
Averagetrait computes fast integer averages, rounded up or down, without any risk of overflow.
Contributors: @althonos, @cuviper
Contributors: @cuviper, @dingelish
Contributors: @cuviper
- Optimized primitive
gcdby avoiding memory swaps. - Fixed
lcm(0, 0)to return0, rather than panicking. - Added
Integer::div_ceil,next_multiple_of, andprev_multiple_of. - Added
Integer::gcd_lcm,extended_gcd, andextended_gcd_lcm.
Contributors: @cuviper, @ignatenkobrain, @smarnach, @strake
- The new
Rootstrait providessqrt,cbrt, andnth_rootmethods, calculating anInteger's principal roots rounded toward zero.
Contributors: @cuviper
- Support for 128-bit integers is now automatically detected and enabled.
Setting the
i128crate feature now causes the build script to panic if such support is not detected.
Contributors: @cuviper
Integeris now implemented fori128andu128starting with Rust 1.26, enabled by the newi128crate feature.
Contributors: @cuviper
- num-integer now has its own source repository at rust-num/num-integer.
- Corrected the argument order documented in
Integer::is_multiple_of - There is now a
stdfeature, enabled by default, along with the implication that building without this feature makes this a#[no_std]crate.- There is no difference in the API at this time.
Contributors: @cuviper, @jaystrictor
No prior release notes were kept. Thanks all the same to the many contributors that have made this crate what it is!