v0.12.0
This release introduces a number of new methods, as well as support for the borsh crate.
Major Changes
- The latest nightly compiler (
1.83.0) does not support user-definedconsttraits, and so thenightlycrate feature no longer makes theCastFromandAstraitsconst. This means the implementations of these traits on bnum integers are no longerconsteither.
Minor Changes
- Added (optional) support for the
borshcrate (this enables serialisation and deserialisation using this crate). - Added
digits_mutandset_bitmethods to unsigned integers, allowing for manipulation without copying the value. - Added
cast_signedmethod for unsigned integers andcast_unsignedmethod for signed integers. - Added
midpointmethod for all integers. - Added
carrying_addandborrowing_submethods for signed integers. - Added
strict_...arithmetic methods for all integers.
Patches
- Added
(bnum)prefix to panic messages that mistakenly did not include it.
Auto-generated release notes:
What's Changed
- feat(serde): borsh by @dzmitry-lahoda in #42
- add digits_mut to buint by @krakow10 in #45
- add set_bit to buint by @krakow10 in #44
- Latest by @isaacholt100 in #46
New Contributors
- @dzmitry-lahoda made their first contribution in #42
- @krakow10 made their first contribution in #45
Full Changelog: v0.11.0...v0.12.0