Repository navigation
v0.7.0
Breaking changes
- Unfortunately version
1.71.0of the nightly Rust compiler dropped support of theconstimplementation of common standard library traits. Previous to this version,bnumhadconstimplementations of many standard library traits such asAdd,BitOr,PartialEq, etc. which were available using nightly. However, now this is no longer possible with the current version of the nightly Rust compiler (as of 28th May 2023), hence theconstimplementations of these traits have been dropped for now to allow compatibility with the latest version on nightly. To account for this, many of the methods defined on these traits now haveconstimplementations on the integer types themselves - so for example, there are nowBUint::shrandBInt::shrmethods which areconst.
Other changes
- The (non-default)
arbitraryfeature has been introduced, which derives theArbitrarytrait from thearbitrarycrate. Note that normallybnumworks withno_std, but it cannot with this feature enabled. - The following methods are now
conston stable:abs_diff,<uint>::{overflowing_neg, wrapping_neg},wrapping_{shr, shl},overflowing_{shr, shl},checked_{shr, shl},rotate_left,rotate_right,from_be_slice,from_le_slice.
(@lrubasze contributed the addition of the arbitrary support in this release - due to a complication with the CI with his pull request, I'm mentioning him here so he is included in this list of contributors).
What's Changed
- Add support for const-trait methods defined on the types themselves by @isaacholt100 in #21
- Bump version to 0.7.0 by @isaacholt100 in #24
Full Changelog: v0.6.0...v0.7.0