|
| 1 | +# Release 0.3.0 (2020-06-12) |
| 2 | + |
| 3 | +### Enhancements |
| 4 | + |
| 5 | +- [The internal `BigDigit` may now be either `u32` or `u64`][62], although that |
| 6 | + implementation detail is not exposed in the API. For now, this is chosen to |
| 7 | + match the target pointer size, but may change in the future. |
| 8 | +- [No-`std` is now supported with the `alloc` crate on Rust 1.36][101]. |
| 9 | +- [`Pow` is now implemented for bigint values][137], not just references. |
| 10 | +- [`TryFrom` is now implemented on Rust 1.34 and later][123], converting signed |
| 11 | + integers to unsigned, and narrowing big integers to primitives. |
| 12 | +- [`Shl` and `Shr` are now implemented for a variety of shift types][142]. |
| 13 | +- A new `trailing_zeros()` returns the number of consecutive zeros from the |
| 14 | + least significant bit. |
| 15 | +- The new `BigInt::magnitude` and `into_parts` methods give access to its |
| 16 | + `BigUint` part as the magnitude. |
| 17 | + |
| 18 | +### Breaking Changes |
| 19 | + |
| 20 | +- `num-bigint` now requires Rust 1.31 or greater. The "i128" feature was |
| 21 | + removed, as support for 128-bit integers is now assumed. |
| 22 | +- [Updated public dependences][110]: |
| 23 | + - `rand` support has been updated to 0.7, requiring Rust 1.32. |
| 24 | + - `quickcheck` support has been updated to 0.9, requiring Rust 1.34. |
| 25 | +- [Removed `impl Neg for BigUint`][145], which only ever panicked. |
| 26 | +- [Bit counts are now `u64` instead of `usize`][143]. |
| 27 | + |
| 28 | +**Contributors**: @cuviper, @dignifiedquire, @hansihe, |
| 29 | +@kpcyrd, @milesand, @tech6hutch |
| 30 | + |
| 31 | +[62]: https://github.com/rust-num/num-bigint/pull/62 |
| 32 | +[101]: https://github.com/rust-num/num-bigint/pull/101 |
| 33 | +[110]: https://github.com/rust-num/num-bigint/pull/110 |
| 34 | +[123]: https://github.com/rust-num/num-bigint/pull/123 |
| 35 | +[137]: https://github.com/rust-num/num-bigint/pull/137 |
| 36 | +[142]: https://github.com/rust-num/num-bigint/pull/142 |
| 37 | +[143]: https://github.com/rust-num/num-bigint/pull/143 |
| 38 | +[145]: https://github.com/rust-num/num-bigint/pull/145 |
| 39 | + |
1 | 40 | # Release 0.2.6 (2020-01-27)
|
2 | 41 |
|
3 | 42 | - [Fix the promotion of negative `isize` in `BigInt` assign-ops][133].
|
|
0 commit comments