Release 0.2.2

This commit is contained in:
Josh Stone 2018-03-18 16:27:31 -07:00
parent fcc33a3577
commit 058a6004f0
2 changed files with 13 additions and 1 deletions

View File

@ -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.1"
version = "0.2.2"
readme = "README.md"
[dependencies]

View File

@ -1,3 +1,15 @@
# Release 0.2.2
- [Casting from floating point to integers now returns `None` on overflow][52],
avoiding [rustc's undefined behavior][rust-10184]. This applies to the `cast`
function and the traits `NumCast`, `FromPrimitive`, and `ToPrimitive`.
**Contributors**: @apopiak, @cuviper, @dbarella
[52]: https://github.com/rust-num/num-traits/pull/52
[rust-10184]: https://github.com/rust-lang/rust/issues/10184
# Release 0.2.1
- [The new `FloatCore` trait][32] offers a subset of `Float` for `#![no_std]` use.