Skip to content

Commit 34bfa63

Browse files
committed
Merge #16
16: Release 0.1.42 r=cuviper a=cuviper
2 parents 07a2d6a + a7bd6a0 commit 34bfa63

File tree

7 files changed

+37
-6
lines changed

7 files changed

+37
-6
lines changed

Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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.1.41"
11+
version = "0.1.42"
1212
readme = "README.md"
1313

1414
[[bench]]
@@ -24,10 +24,13 @@ name = "shootout-pidigits"
2424
[dependencies]
2525

2626
[dependencies.num-integer]
27-
version = "0.1.32"
27+
version = "0.1.36"
28+
default-features = false
2829

2930
[dependencies.num-traits]
30-
version = "0.1.32"
31+
version = "0.2.0"
32+
default-features = false
33+
features = ["std"]
3134

3235
[dependencies.rand]
3336
optional = true

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![crate](https://img.shields.io/crates/v/num-bigint.svg)](https://crates.io/crates/num-bigint)
44
[![documentation](https://docs.rs/num-bigint/badge.svg)](https://docs.rs/num-bigint)
5+
![minimum rustc 1.8](https://img.shields.io/badge/rustc-1.8+-red.svg)
56
[![Travis status](https://travis-ci.org/rust-num/num-bigint.svg?branch=master)](https://travis-ci.org/rust-num/num-bigint)
67

78
Big integer types for Rust, `BigInt` and `BigUint`.
@@ -21,6 +22,10 @@ and this to your crate root:
2122
extern crate num_bigint;
2223
```
2324

25+
## Releases
26+
27+
Release notes are available in [RELEASES.md](RELEASES.md).
28+
2429
## Compatibility
2530

2631
The `num-bigint` crate is tested for rustc 1.8 and greater.

RELEASES.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Release 0.1.42
2+
3+
- [num-bigint now has its own source repository][num-356] at [rust-num/num-bigint][home].
4+
- [`lcm` now avoids creating a large intermediate product][num-350].
5+
- [`gcd` now uses Stein's algorithm][15] with faster shifts instead of division.
6+
7+
**Contributors**: @cuviper, @Emerentius, @mhogrefe
8+
9+
[home]: https://github.com/rust-num/num-bigint
10+
[num-350]: https://github.com/rust-num/num/pull/350
11+
[num-356]: https://github.com/rust-num/num/pull/356
12+
[15]: https://github.com/rust-num/num-bigint/pull/15
13+
14+
15+
# Prior releases
16+
17+
No prior release notes were kept. Thanks all the same to the many
18+
contributors that have made this crate what it is!
19+

src/bigint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::str::{self, FromStr};
44
use std::fmt;
55
use std::cmp::Ordering::{self, Less, Greater, Equal};
66
use std::{i64, u64};
7-
#[allow(unused)]
7+
#[allow(unused_imports)]
88
use std::ascii::AsciiExt;
99

1010
#[cfg(feature = "serde")]

src/biguint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::mem;
1111
use std::cmp::Ordering::{self, Less, Greater, Equal};
1212
use std::{f32, f64};
1313
use std::{u8, u64};
14-
#[allow(unused)]
14+
#[allow(unused_imports)]
1515
use std::ascii::AsciiExt;
1616

1717
#[cfg(feature = "serde")]

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
//! # fn main() {
7070
//! # }
7171
//! ```
72+
//!
73+
//! ## Compatibility
74+
//!
75+
//! The `num-bigint` crate is tested for rustc 1.8 and greater.
7276
7377
#![doc(html_root_url = "https://docs.rs/num-bigint/0.1")]
7478

src/tests/biguint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,7 @@ fn test_from_str_radix() {
15691569

15701570
#[test]
15711571
fn test_all_str_radix() {
1572-
#[allow(unused)]
1572+
#[allow(unused_imports)]
15731573
use std::ascii::AsciiExt;
15741574

15751575
let n = BigUint::new((0..10).collect());

0 commit comments

Comments
 (0)