plug-blockchain
plug-blockchain copied to clipboard
Bump num-bigint from 0.2.6 to 0.3.1
Bumps num-bigint from 0.2.6 to 0.3.1.
Changelog
Sourced from num-bigint's changelog.
Release 0.3.1 (2020-11-03)
- Addition and subtraction now uses intrinsics for performance on
x86
andx86_64
when built with Rust 1.33 or later.- Conversions
to_f32
andto_f64
now return infinity for very large numbers, rather thanNone
. This does preserve the sign too, so a large negativeBigInt
will convert to negative infinity.- The optional
arbitrary
feature implementsarbitrary::Arbitrary
, distinct fromquickcheck::Arbitrary
.- The division algorithm has been optimized to reduce the number of temporary allocations and improve the internal guesses at each step.
BigInt
andBigUint
will opportunistically shrink capacity if the internal vector is much larger than needed.Contributors:
@cuviper
,@e00E
,@ejmahler
,@notoria
,@tczajka
Release 0.3.0 (2020-06-12)
Enhancements
- [The internal
BigDigit
may now be eitheru32
oru64
][62], although that implementation detail is not exposed in the API. For now, this is chosen to match the target pointer size, but may change in the future.- [No-
std
is now supported with thealloc
crate on Rust 1.36][101].- [
Pow
is now implemented for bigint values][137], not just references.- [
TryFrom
is now implemented on Rust 1.34 and later][123], converting signed integers to unsigned, and narrowing big integers to primitives.- [
Shl
andShr
are now implemented for a variety of shift types][142].- A new
trailing_zeros()
returns the number of consecutive zeros from the least significant bit.- The new
BigInt::magnitude
andinto_parts
methods give access to itsBigUint
part as the magnitude.Breaking Changes
num-bigint
now requires Rust 1.31 or greater.
- The "i128" opt-in feature was removed, now always available.
- [Updated public dependences][110]:
rand
support has been updated to 0.7, requiring Rust 1.32.quickcheck
support has been updated to 0.9, requiring Rust 1.34.- [Removed
impl Neg for BigUint
][145], which only ever panicked.- [Bit counts are now
u64
instead ofusize
][143].Contributors:
@cuviper
,@dignifiedquire
,@hansihe
,
... (truncated)
Commits
38d6973
Merge #173456c3db
Release 0.3.1b1c638e
Make licensing more explicita2ad16d
Merge #166b3d48f4
Merge #1416bd8c9c
Remove fuzz examplecf299cf
Merge #170b03eb6d
Improve performance of the basic division algorithm.e03bbc1
Restructure adc/sbb to match addcarry/subborrowe3971e6
Unify addcarry probing for x86_64/x86- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)