From ab0de9c329bd746f01a9830d3f8fb1076624a53b Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 1 Mar 2018 14:20:57 -0800 Subject: [PATCH] Release 0.2.1 --- Cargo.toml | 2 +- RELEASES.md | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index df1c313..0723076 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ categories = [ "algorithms", "science" ] license = "MIT/Apache-2.0" repository = "https://github.com/rust-num/num-traits" name = "num-traits" -version = "0.2.0" +version = "0.2.1" readme = "README.md" [dependencies] diff --git a/RELEASES.md b/RELEASES.md index c34ce57..a75d70b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,8 +1,27 @@ +# Release 0.2.1 + +- [The new `FloatCore` trait][32] offers a subset of `Float` for `#![no_std]` use. + [This includes everything][41] except the transcendental functions and FMA. +- [The new `Inv` trait][37] returns the multiplicative inverse, or reciprocal. +- [The new `Pow` trait][37] performs exponentiation, much like the existing `pow` + function, but with generic exponent types. +- [The new `One::is_one` method][39] tests if a value equals 1. Implementers + should override this method if there's a more efficient way to check for 1, + rather than comparing with a temporary `one()`. + +**Contributors**: @clarcharr, @cuviper, @vks + +[32]: https://github.com/rust-num/num-traits/pull/32 +[37]: https://github.com/rust-num/num-traits/pull/37 +[39]: https://github.com/rust-num/num-traits/pull/39 +[41]: https://github.com/rust-num/num-traits/pull/41 + + # Release 0.2.0 - **breaking change**: [There is now a `std` feature][30], enabled by default, along with the implication that building *without* this feature makes this a - `#[no_std]` crate. + `#![no_std]` crate. - The `Float` and `Real` traits are only available when `std` is enabled. - Otherwise, the API is unchanged, and num-traits 0.1.43 now re-exports its items from num-traits 0.2 for compatibility (the [semver-trick]).