From a7bd6a0f4b10fe5da370129f3165e8f3fd67c31a Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 7 Feb 2018 22:42:51 -0800 Subject: [PATCH] Release 0.1.42 --- Cargo.toml | 9 ++++++--- README.md | 5 +++++ RELEASES.md | 19 +++++++++++++++++++ src/bigint.rs | 2 +- src/biguint.rs | 2 +- src/lib.rs | 4 ++++ src/tests/biguint.rs | 2 +- 7 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 RELEASES.md diff --git a/Cargo.toml b/Cargo.toml index 241e6af..9772823 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ categories = [ "algorithms", "data-structures", "science" ] license = "MIT/Apache-2.0" name = "num-bigint" repository = "https://github.com/rust-num/num-bigint" -version = "0.1.41" +version = "0.1.42" readme = "README.md" [[bench]] @@ -24,10 +24,13 @@ name = "shootout-pidigits" [dependencies] [dependencies.num-integer] -version = "0.1.32" +version = "0.1.36" +default-features = false [dependencies.num-traits] -version = "0.1.32" +version = "0.2.0" +default-features = false +features = ["std"] [dependencies.rand] optional = true diff --git a/README.md b/README.md index 8fa1457..6ca895e 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![crate](https://img.shields.io/crates/v/num-bigint.svg)](https://crates.io/crates/num-bigint) [![documentation](https://docs.rs/num-bigint/badge.svg)](https://docs.rs/num-bigint) +![minimum rustc 1.8](https://img.shields.io/badge/rustc-1.8+-red.svg) [![Travis status](https://travis-ci.org/rust-num/num-bigint.svg?branch=master)](https://travis-ci.org/rust-num/num-bigint) Big integer types for Rust, `BigInt` and `BigUint`. @@ -21,6 +22,10 @@ and this to your crate root: extern crate num_bigint; ``` +## Releases + +Release notes are available in [RELEASES.md](RELEASES.md). + ## Compatibility The `num-bigint` crate is tested for rustc 1.8 and greater. diff --git a/RELEASES.md b/RELEASES.md new file mode 100644 index 0000000..550ee0f --- /dev/null +++ b/RELEASES.md @@ -0,0 +1,19 @@ +# Release 0.1.42 + +- [num-bigint now has its own source repository][num-356] at [rust-num/num-bigint][home]. +- [`lcm` now avoids creating a large intermediate product][num-350]. +- [`gcd` now uses Stein's algorithm][15] with faster shifts instead of division. + +**Contributors**: @cuviper, @Emerentius, @mhogrefe + +[home]: https://github.com/rust-num/num-bigint +[num-350]: https://github.com/rust-num/num/pull/350 +[num-356]: https://github.com/rust-num/num/pull/356 +[15]: https://github.com/rust-num/num-bigint/pull/15 + + +# Prior releases + +No prior release notes were kept. Thanks all the same to the many +contributors that have made this crate what it is! + diff --git a/src/bigint.rs b/src/bigint.rs index 29d97c5..e90f4d1 100644 --- a/src/bigint.rs +++ b/src/bigint.rs @@ -4,7 +4,7 @@ use std::str::{self, FromStr}; use std::fmt; use std::cmp::Ordering::{self, Less, Greater, Equal}; use std::{i64, u64}; -#[allow(unused)] +#[allow(unused_imports)] use std::ascii::AsciiExt; #[cfg(feature = "serde")] diff --git a/src/biguint.rs b/src/biguint.rs index eebfc45..88eb1f2 100644 --- a/src/biguint.rs +++ b/src/biguint.rs @@ -11,7 +11,7 @@ use std::mem; use std::cmp::Ordering::{self, Less, Greater, Equal}; use std::{f32, f64}; use std::{u8, u64}; -#[allow(unused)] +#[allow(unused_imports)] use std::ascii::AsciiExt; #[cfg(feature = "serde")] diff --git a/src/lib.rs b/src/lib.rs index deae08d..14b57a0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -69,6 +69,10 @@ //! # fn main() { //! # } //! ``` +//! +//! ## Compatibility +//! +//! The `num-bigint` crate is tested for rustc 1.8 and greater. #![doc(html_root_url = "https://docs.rs/num-bigint/0.1")] diff --git a/src/tests/biguint.rs b/src/tests/biguint.rs index 2a61efb..0e39fd5 100644 --- a/src/tests/biguint.rs +++ b/src/tests/biguint.rs @@ -1569,7 +1569,7 @@ fn test_from_str_radix() { #[test] fn test_all_str_radix() { - #[allow(unused)] + #[allow(unused_imports)] use std::ascii::AsciiExt; let n = BigUint::new((0..10).collect());