From 4a03db4e1cdc9e17632f3e9145fee4f435020c80 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 10 May 2018 12:15:53 -0700 Subject: [PATCH] Release 0.2.3 --- Cargo.toml | 2 +- RELEASES.md | 23 +++++++++++++++++++++++ ci/test_full.sh | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 98d7ca9..b183e51 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ categories = ["algorithms", "science", "no-std"] license = "MIT/Apache-2.0" repository = "https://github.com/rust-num/num-traits" name = "num-traits" -version = "0.2.2" +version = "0.2.3" readme = "README.md" [package.metadata.docs.rs] diff --git a/RELEASES.md b/RELEASES.md index 095f91b..cdec035 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,3 +1,26 @@ +# Release 0.2.3 + +- [The new `CheckedNeg` and `CheckedRem` traits][63] perform checked `Neg` and + `Rem`, returning `Some(output)` or `None` on overflow. +- [The `no_std` implementation of `FloatCore::to_degrees` for `f32`][61] now + uses a constant for greater accuracy, mirroring [rust#47919]. (With `std` it + just calls the inherent `f32::to_degrees` in the standard library.) +- [The new `MulAdd` and `MulAddAssign` traits][59] perform a fused multiply- + add. For integer types this is just a convenience, but for floating point + types this produces a more accurate result than the separate operations. +- [All applicable traits are now implemented for 128-bit integers][60] starting + with Rust 1.26, enabled by the new `i128` crate feature. The `FromPrimitive` + and `ToPrimitive` traits now also have corresponding 128-bit methods, which + default to converting via 64-bit integers for compatibility. + +**Contributors**: @cuviper, @LEXUGE, @regexident, @vks + +[59]: https://github.com/rust-num/num-traits/pull/59 +[60]: https://github.com/rust-num/num-traits/pull/60 +[61]: https://github.com/rust-num/num-traits/pull/61 +[63]: https://github.com/rust-num/num-traits/pull/63 +[rust#47919]: https://github.com/rust-lang/rust/pull/47919 + # Release 0.2.2 - [Casting from floating point to integers now returns `None` on overflow][52], diff --git a/ci/test_full.sh b/ci/test_full.sh index e874d8d..08632d4 100755 --- a/ci/test_full.sh +++ b/ci/test_full.sh @@ -13,7 +13,7 @@ cargo build --verbose --no-default-features cargo test --verbose --no-default-features # test `i128` -if [[ "$TRAVIS_RUST_VERSION" =~ ^(nightly|beta)$ ]]; then +if [[ "$TRAVIS_RUST_VERSION" =~ ^(nightly|beta|stable)$ ]]; then cargo build --verbose --features=i128 cargo test --verbose --features=i128 fi