Skip to content

Commit 38d6973

Browse files
bors[bot]cuviper
andauthored
Merge #173
173: Release 0.3.1 r=cuviper a=cuviper Co-authored-by: Josh Stone <[email protected]>
2 parents a2ad16d + 456c3db commit 38d6973

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ documentation = "https://docs.rs/num-bigint"
55
homepage = "https://github.com/rust-num/num-bigint"
66
keywords = ["mathematics", "numerics", "bignum"]
77
categories = [ "algorithms", "data-structures", "science" ]
8-
license = "MIT/Apache-2.0"
8+
license = "MIT OR Apache-2.0"
99
name = "num-bigint"
1010
repository = "https://github.com/rust-num/num-bigint"
1111
version = "0.3.1"

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,18 @@ table offers a brief comparison to a few alternatives.
6464
[`rust-gmp`]: https://crates.io/crates/rust-gmp
6565
[`ramp`]: https://crates.io/crates/ramp
6666
[`apint`]: https://crates.io/crates/apint
67+
68+
## License
69+
70+
Licensed under either of
71+
72+
* [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
73+
* [MIT license](http://opensource.org/licenses/MIT)
74+
75+
at your option.
76+
77+
### Contribution
78+
79+
Unless you explicitly state otherwise, any contribution intentionally submitted
80+
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
81+
dual licensed as above, without any additional terms or conditions.

RELEASES.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# Release 0.3.1 (2020-11-03)
2+
3+
- [Addition and subtraction now uses intrinsics][141] for performance on `x86`
4+
and `x86_64` when built with Rust 1.33 or later.
5+
- [Conversions `to_f32` and `to_f64` now return infinity][163] for very large
6+
numbers, rather than `None`. This does preserve the sign too, so a large
7+
negative `BigInt` will convert to negative infinity.
8+
- [The optional `arbitrary` feature implements `arbitrary::Arbitrary`][166],
9+
distinct from `quickcheck::Arbitrary`.
10+
- [The division algorithm has been optimized][170] to reduce the number of
11+
temporary allocations and improve the internal guesses at each step.
12+
- [`BigInt` and `BigUint` will opportunistically shrink capacity][171] if the
13+
internal vector is much larger than needed.
14+
15+
**Contributors**: @cuviper, @e00E, @ejmahler, @notoria, @tczajka
16+
17+
[141]: https://github.com/rust-num/num-bigint/pull/141
18+
[163]: https://github.com/rust-num/num-bigint/pull/163
19+
[166]: https://github.com/rust-num/num-bigint/pull/166
20+
[170]: https://github.com/rust-num/num-bigint/pull/170
21+
[171]: https://github.com/rust-num/num-bigint/pull/171
22+
123
# Release 0.3.0 (2020-06-12)
224

325
### Enhancements

0 commit comments

Comments
 (0)