Skip to content

Commit 2acdca3

Browse files
committed
Release 0.3.0
1 parent 5e6c262 commit 2acdca3

File tree

3 files changed

+41
-3
lines changed

3 files changed

+41
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ categories = [ "algorithms", "data-structures", "science" ]
88
license = "MIT/Apache-2.0"
99
name = "num-bigint"
1010
repository = "https://github.com/rust-num/num-bigint"
11-
version = "0.3.0-pre"
11+
version = "0.3.0"
1212
readme = "README.md"
1313
build = "build.rs"
14-
publish = false
1514
exclude = ["/bors.toml", "/ci/*", "/.github/*"]
1615
edition = "2018"
1716

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ table offers a brief comparison to a few alternatives.
5454
| :--------------- | :------------- | :-------- | :------------- |
5555
| **`num-bigint`** | MIT/Apache-2.0 | 1.31 | pure rust |
5656
| [`ramp`] | Apache-2.0 | nightly | rust and inline assembly |
57-
| [`rug`] | LGPL-3.0+ | 1.31 | bundles [GMP] via [`gmp-mpfr-sys`] |
57+
| [`rug`] | LGPL-3.0+ | 1.37 | bundles [GMP] via [`gmp-mpfr-sys`] |
5858
| [`rust-gmp`] | MIT | stable? | links to [GMP] |
5959
| [`apint`] | MIT/Apache-2.0 | 1.26 | pure rust (unfinished) |
6060

RELEASES.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
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+
140
# Release 0.2.6 (2020-01-27)
241

342
- [Fix the promotion of negative `isize` in `BigInt` assign-ops][133].

0 commit comments

Comments
 (0)