From 2f2b05e33f1355a3e648dba8affe4686141fd520 Mon Sep 17 00:00:00 2001 From: Trevor Spiteri Date: Sun, 2 Feb 2020 21:02:14 +0100 Subject: [PATCH] version 0.5.2 --- Cargo.toml | 2 +- README.md | 107 ++++++++++++++++++++++++---------------------------- RELEASES.md | 5 +++ src/lib.rs | 6 +-- 4 files changed, 58 insertions(+), 62 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 21153cd..a53654d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ [package] name = "fixed" -version = "0.5.1" +version = "0.5.2" authors = ["Trevor Spiteri "] description = "Fixed-point numbers" documentation = "https://docs.rs/fixed" diff --git a/README.md b/README.md index 477f4f4..d004c0e 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,12 @@ The conversions supported cover the following cases. ## What’s new +### Version 0.5.2 news (2020-02-02) + + * [`Wrapping`] now supports serialization. (Thanks: Shane Pearman) + +[`Wrapping`]: https://docs.rs/fixed/0.5.2/fixed/struct.Wrapping.html + ### Version 0.5.1 news (2019-12-23) * [`ParseFixedError`] implements [`Error`] when the new `std` @@ -85,41 +91,26 @@ The conversions supported cover the following cases. * [`wrapping_div_euclid_int`], [`wrapping_rem_euclid_int`] * [`overflowing_div_euclid_int`], [`overflowing_rem_euclid_int`] -[`Fixed`]: https://docs.rs/fixed/0.5.1/fixed/traits/trait.Fixed.html -[`checked_div_euclid_int`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.checked_div_euclid_int -[`checked_rem_euclid_int`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.checked_rem_euclid_int -[`div_euclid_int`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.div_euclid_int -[`from_be_bytes`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.from_be_bytes -[`from_le_bytes`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.from_le_bytes -[`from_ne_bytes`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.from_ne_bytes -[`overflowing_div_euclid_int`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.overflowing_div_euclid_int -[`overflowing_rem_euclid_int`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.overflowing_rem_euclid_int -[`rem_euclid_int`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.rem_euclid_int -[`to_be_bytes`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.to_be_bytes -[`to_le_bytes`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.to_le_bytes -[`to_ne_bytes`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.to_ne_bytes -[`wrapping_div_euclid_int`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.wrapping_div_euclid_int -[`wrapping_rem_euclid_int`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.wrapping_rem_euclid_int +[`Fixed`]: https://docs.rs/fixed/0.5.2/fixed/traits/trait.Fixed.html +[`checked_div_euclid_int`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.checked_div_euclid_int +[`checked_rem_euclid_int`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.checked_rem_euclid_int +[`div_euclid_int`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.div_euclid_int +[`from_be_bytes`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.from_be_bytes +[`from_le_bytes`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.from_le_bytes +[`from_ne_bytes`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.from_ne_bytes +[`overflowing_div_euclid_int`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.overflowing_div_euclid_int +[`overflowing_rem_euclid_int`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.overflowing_rem_euclid_int +[`rem_euclid_int`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.rem_euclid_int +[`to_be_bytes`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.to_be_bytes +[`to_le_bytes`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.to_le_bytes +[`to_ne_bytes`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.to_ne_bytes +[`wrapping_div_euclid_int`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.wrapping_div_euclid_int +[`wrapping_rem_euclid_int`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.wrapping_rem_euclid_int #### Incompatible changes * Deprecated methods and modules were removed. -### Version 0.4.6 news (2019-10-16) - - * Conversions to/from [`bf16`] are now provided when the `f16` - option is enabled. - * The following methods are now `const` functions: - [`saturating_neg`], [`saturating_add`], [`saturating_sub`], - [`saturating_mul_int`], [`saturating_abs`] - * Support for casts using the [*az* crate] was added. - -[`saturating_abs`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.saturating_abs -[`saturating_add`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.saturating_add -[`saturating_mul_int`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.saturating_mul_int -[`saturating_sub`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.saturating_sub -[`saturating_neg`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.saturating_neg - ### Other releases Details on other releases can be found in [*RELEASES.md*]. @@ -188,7 +179,7 @@ it in your crate, add it as a dependency inside [*Cargo.toml*]: ```toml [dependencies] -fixed = "0.5.1" +fixed = "0.5.2" ``` The *fixed* crate requires rustc version 1.39.0 or later. @@ -213,7 +204,7 @@ To enable features, you can add the dependency like this to ```toml [dependencies.fixed] -version = "0.5.1" +version = "0.5.2" features = ["f16", "serde"] ``` @@ -245,38 +236,38 @@ additional terms or conditions. [`Binary`]: https://doc.rust-lang.org/nightly/core/fmt/trait.Binary.html [`Display`]: https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html [`Error`]: https://doc.rust-lang.org/nightly/std/error/trait.Error.html -[`FixedI128`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI128.html -[`FixedI16`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI16.html -[`FixedI32`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html -[`FixedI64`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI64.html -[`FixedI8`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI8.html -[`FixedU128`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedU128.html -[`FixedU16`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedU16.html -[`FixedU32`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedU32.html -[`FixedU64`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedU64.html -[`FixedU8`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedU8.html -[`FromFixed`]: https://docs.rs/fixed/0.5.1/fixed/traits/trait.FromFixed.html +[`FixedI128`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI128.html +[`FixedI16`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI16.html +[`FixedI32`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html +[`FixedI64`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI64.html +[`FixedI8`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI8.html +[`FixedU128`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedU128.html +[`FixedU16`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedU16.html +[`FixedU32`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedU32.html +[`FixedU64`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedU64.html +[`FixedU8`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedU8.html +[`FromFixed`]: https://docs.rs/fixed/0.5.2/fixed/traits/trait.FromFixed.html [`FromStr`]: https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html [`From`]: https://doc.rust-lang.org/nightly/core/convert/trait.From.html -[`I20F12`]: https://docs.rs/fixed/0.5.1/fixed/types/type.I20F12.html -[`I4F12`]: https://docs.rs/fixed/0.5.1/fixed/types/type.I4F12.html -[`I4F4`]: https://docs.rs/fixed/0.5.1/fixed/types/type.I4F4.html +[`I20F12`]: https://docs.rs/fixed/0.5.2/fixed/types/type.I20F12.html +[`I4F12`]: https://docs.rs/fixed/0.5.2/fixed/types/type.I4F12.html +[`I4F4`]: https://docs.rs/fixed/0.5.2/fixed/types/type.I4F4.html [`Into`]: https://doc.rust-lang.org/nightly/core/convert/trait.Into.html -[`LossyFrom`]: https://docs.rs/fixed/0.5.1/fixed/traits/trait.LossyFrom.html -[`LossyInto`]: https://docs.rs/fixed/0.5.1/fixed/traits/trait.LossyInto.html +[`LossyFrom`]: https://docs.rs/fixed/0.5.2/fixed/traits/trait.LossyFrom.html +[`LossyInto`]: https://docs.rs/fixed/0.5.2/fixed/traits/trait.LossyInto.html [`LowerHex`]: https://doc.rust-lang.org/nightly/core/fmt/trait.LowerHex.html [`Octal`]: https://doc.rust-lang.org/nightly/core/fmt/trait.Octal.html -[`ParseFixedError`]: https://docs.rs/fixed/0.5.1/fixed/struct.ParseFixedError.html -[`ToFixed`]: https://docs.rs/fixed/0.5.1/fixed/traits/trait.ToFixed.html -[`U12`]: https://docs.rs/fixed/0.5.1/fixed/types/extra/type.U12.html -[`U20F12`]: https://docs.rs/fixed/0.5.1/fixed/types/type.U20F12.html +[`ParseFixedError`]: https://docs.rs/fixed/0.5.2/fixed/struct.ParseFixedError.html +[`ToFixed`]: https://docs.rs/fixed/0.5.2/fixed/traits/trait.ToFixed.html +[`U12`]: https://docs.rs/fixed/0.5.2/fixed/types/extra/type.U12.html +[`U20F12`]: https://docs.rs/fixed/0.5.2/fixed/types/type.U20F12.html [`UpperHex`]: https://doc.rust-lang.org/nightly/core/fmt/trait.UpperHex.html [`bf16`]: https://docs.rs/half/^1/half/struct.bf16.html -[`checked_from_num`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.checked_from_num +[`checked_from_num`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.checked_from_num [`f16`]: https://docs.rs/half/^1/half/struct.f16.html -[`from_num`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.from_num -[`from_str_binary`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.from_str_binary -[`from_str_hex`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.from_str_hex -[`from_str_octal`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.from_str_octal -[`to_num`]: https://docs.rs/fixed/0.5.1/fixed/struct.FixedI32.html#method.to_num +[`from_num`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.from_num +[`from_str_binary`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.from_str_binary +[`from_str_hex`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.from_str_hex +[`from_str_octal`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.from_str_octal +[`to_num`]: https://docs.rs/fixed/0.5.2/fixed/struct.FixedI32.html#method.to_num [const generics]: https://github.com/rust-lang/rust/issues/44580 diff --git a/RELEASES.md b/RELEASES.md index 449b235..b024395 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.5.2 (2020-02-02) +========================== + + * `Wrapping` now supports serialization. (Thanks: Shane Pearman) + Version 0.5.1 (2019-12-22) ========================== diff --git a/src/lib.rs b/src/lib.rs index eaa11cd..fa92513 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -137,7 +137,7 @@ it in your crate, add it as a dependency inside [*Cargo.toml*]: ```toml [dependencies] -fixed = "0.5.1" +fixed = "0.5.2" ``` The *fixed* crate requires rustc version 1.39.0 or later. @@ -162,7 +162,7 @@ To enable features, you can add the dependency like this to ```toml [dependencies.fixed] -version = "0.5.1" +version = "0.5.2" features = ["f16", "serde"] ``` @@ -232,7 +232,7 @@ additional terms or conditions. */ #![cfg_attr(not(feature = "std"), no_std)] #![warn(missing_docs)] -#![doc(html_root_url = "https://docs.rs/fixed/0.5.1")] +#![doc(html_root_url = "https://docs.rs/fixed/0.5.2")] #![doc(test(attr(deny(warnings))))] #![cfg_attr(feature = "fail-on-warnings", deny(warnings))] #![allow(clippy::type_repetition_in_bounds)]