From ded37197a69301631c9a7a5f33387c1c2fb95bc2 Mon Sep 17 00:00:00 2001 From: Trevor Spiteri Date: Wed, 27 Feb 2019 22:52:15 +0100 Subject: [PATCH] version 0.3.2 --- Cargo.toml | 2 +- README.md | 62 +++++++++++++++++++++++++++++------------------------ RELEASES.md | 5 +++++ src/lib.rs | 6 +++--- 4 files changed, 43 insertions(+), 32 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2ac06e2..64052e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ [package] name = "fixed" -version = "0.3.1" +version = "0.3.2" authors = ["Trevor Spiteri "] description = "Fixed-point numbers" documentation = "https://docs.rs/fixed" diff --git a/README.md b/README.md index 2c517d0..feee858 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,12 @@ numeric primitives are implemented. That is, you can use [`From`] or ## What’s new +### Version 0.3.2 news (2019-02-27) + + * The [`Wrapping`] wrapper was added. + +[`Wrapping`]: https://docs.rs/fixed/0.3.2/fixed/struct.Wrapping.html + ### Version 0.3.1 news (2019-02-07) * Reimplement [`From`][`From`] for all fixed-point types which @@ -73,19 +79,19 @@ numeric primitives are implemented. That is, you can use [`From`] or * The methods [`int_bits`] and [`frac_bits`] were deprecated and replaced by the methods [`int_nbits`] and [`frac_nbits`]. -[`Float::from_fixed`]: https://docs.rs/fixed/0.3.1/fixed/sealed/trait.Float.html#method.from_fixed -[`Float::to_fixed`]: https://docs.rs/fixed/0.3.1/fixed/sealed/trait.Float.html#method.to_fixed -[`Float`]: https://docs.rs/fixed/0.3.1/fixed/sealed/trait.Float.html -[`Int::from_fixed`]: https://docs.rs/fixed/0.3.1/fixed/sealed/trait.Int.html#method.from_fixed -[`Int::to_fixed`]: https://docs.rs/fixed/0.3.1/fixed/sealed/trait.Int.html#method.to_fixed -[`Int`]: https://docs.rs/fixed/0.3.1/fixed/sealed/trait.Int.html +[`Float::from_fixed`]: https://docs.rs/fixed/0.3.2/fixed/sealed/trait.Float.html#method.from_fixed +[`Float::to_fixed`]: https://docs.rs/fixed/0.3.2/fixed/sealed/trait.Float.html#method.to_fixed +[`Float`]: https://docs.rs/fixed/0.3.2/fixed/sealed/trait.Float.html +[`Int::from_fixed`]: https://docs.rs/fixed/0.3.2/fixed/sealed/trait.Int.html#method.from_fixed +[`Int::to_fixed`]: https://docs.rs/fixed/0.3.2/fixed/sealed/trait.Int.html#method.to_fixed +[`Int`]: https://docs.rs/fixed/0.3.2/fixed/sealed/trait.Int.html [`bool`]: https://doc.rust-lang.org/nightly/std/convert/trait.From.html -[`frac_bits`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedI32.html#method.frac_bits -[`frac_nbits`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedI32.html#method.frac_nbits -[`int_bits`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedI32.html#method.int_bits -[`int_nbits`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedI32.html#method.int_nbits -[`to_fixed`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedI32.html#method.to_fixed -[`to_int`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedI32.html#method.to_int +[`frac_bits`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedI32.html#method.frac_bits +[`frac_nbits`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedI32.html#method.frac_nbits +[`int_bits`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedI32.html#method.int_bits +[`int_nbits`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedI32.html#method.int_nbits +[`to_fixed`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedI32.html#method.to_fixed +[`to_int`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedI32.html#method.to_int ### Other releases @@ -155,7 +161,7 @@ it in your crate, add it as a dependency inside [*Cargo.toml*]: ```toml [dependencies] -fixed = "0.3.1" +fixed = "0.3.2" ``` If you are using the 2015 Rust edition, you also need to declare it by @@ -182,7 +188,7 @@ To enable features, you can add the dependency like this to ```toml [dependencies.fixed] -version = "0.3.1" +version = "0.3.2" features = ["f16", "serde"] ``` @@ -210,22 +216,22 @@ additional terms or conditions. [*typenum* crate]: https://crates.io/crates/typenum [LICENSE-APACHE]: https://www.apache.org/licenses/LICENSE-2.0 [LICENSE-MIT]: https://opensource.org/licenses/MIT -[`FixedI128`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedI128.html -[`FixedI16`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedI16.html -[`FixedI32`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedI32.html -[`FixedI64`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedI64.html -[`FixedI8`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedI8.html -[`FixedU128`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedU128.html -[`FixedU16`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedU16.html -[`FixedU32`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedU32.html -[`FixedU64`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedU64.html -[`FixedU8`]: https://docs.rs/fixed/0.3.1/fixed/struct.FixedU8.html +[`FixedI128`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedI128.html +[`FixedI16`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedI16.html +[`FixedI32`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedI32.html +[`FixedI64`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedI64.html +[`FixedI8`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedI8.html +[`FixedU128`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedU128.html +[`FixedU16`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedU16.html +[`FixedU32`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedU32.html +[`FixedU64`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedU64.html +[`FixedU8`]: https://docs.rs/fixed/0.3.2/fixed/struct.FixedU8.html [`From`]: https://doc.rust-lang.org/nightly/std/convert/trait.From.html -[`I20F12`]: https://docs.rs/fixed/0.3.1/fixed/types/type.I20F12.html -[`I4F12`]: https://docs.rs/fixed/0.3.1/fixed/types/type.I4F12.html -[`I4F4`]: https://docs.rs/fixed/0.3.1/fixed/types/type.I4F4.html +[`I20F12`]: https://docs.rs/fixed/0.3.2/fixed/types/type.I20F12.html +[`I4F12`]: https://docs.rs/fixed/0.3.2/fixed/types/type.I4F12.html +[`I4F4`]: https://docs.rs/fixed/0.3.2/fixed/types/type.I4F4.html [`Into`]: https://doc.rust-lang.org/nightly/std/convert/trait.Into.html -[`U20F12`]: https://docs.rs/fixed/0.3.1/fixed/types/type.U20F12.html +[`U20F12`]: https://docs.rs/fixed/0.3.2/fixed/types/type.U20F12.html [`f16`]: https://docs.rs/half/^1/half/struct.f16.html [`from_fixed`]: struct.FixedI8.html#method.from_fixed [const generics]: https://github.com/rust-lang/rust/issues/44580 diff --git a/RELEASES.md b/RELEASES.md index e46457f..624feac 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -5,6 +5,11 @@ modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty. --> +Version 0.3.2 (2019-02-27) +========================== + + * The `Wrapping` wrapper was added. + Version 0.3.1 (2019-02-07) ========================== diff --git a/src/lib.rs b/src/lib.rs index 02b27fc..0becee4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -108,7 +108,7 @@ it in your crate, add it as a dependency inside [*Cargo.toml*]: ```toml [dependencies] -fixed = "0.3.1" +fixed = "0.3.2" ``` If you are using the 2015 Rust edition, you also need to declare it by @@ -135,7 +135,7 @@ To enable features, you can add the dependency like this to ```toml [dependencies.fixed] -version = "0.3.1" +version = "0.3.2" features = ["f16", "serde"] ``` @@ -185,7 +185,7 @@ additional terms or conditions. */ #![no_std] #![warn(missing_docs)] -#![doc(html_root_url = "https://docs.rs/fixed/0.3.1")] +#![doc(html_root_url = "https://docs.rs/fixed/0.3.2")] #![doc(test(attr(deny(warnings))))] #![cfg_attr(feature = "fail-on-warnings", deny(warnings))]