Skip to content

v0.12.0

Choose a tag to compare

@isaacholt100 isaacholt100 released this 20 Sep 14:07
· 87 commits to master since this release
eeefc69

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-defined const traits, and so the nightly crate feature no longer makes the CastFrom and As traits const. This means the implementations of these traits on bnum integers are no longer const either.

Minor Changes

  • Added (optional) support for the borsh crate (this enables serialisation and deserialisation using this crate).
  • Added digits_mut and set_bit methods to unsigned integers, allowing for manipulation without copying the value.
  • Added cast_signed method for unsigned integers and cast_unsigned method for signed integers.
  • Added midpoint method for all integers.
  • Added carrying_add and borrowing_sub methods 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

New Contributors

Full Changelog: v0.11.0...v0.12.0