version 0.5.1

This commit is contained in:
Trevor Spiteri 2019-12-23 18:15:31 +01:00
parent 823916346f
commit ab0aa534c7
4 changed files with 63 additions and 52 deletions

View File

@ -7,7 +7,7 @@
[package]
name = "fixed"
version = "0.5.0"
version = "0.5.1"
authors = ["Trevor Spiteri <tspiteri@ieee.org>"]
description = "Fixed-point numbers"
documentation = "https://docs.rs/fixed"

101
README.md
View File

@ -68,6 +68,11 @@ The conversions supported cover the following cases.
## Whats new
### Version 0.5.1 news (2019-12-23)
* [`ParseFixedError`] implements [`Error`] when the new `std`
feature is enabled.
### Version 0.5.0 news (2019-12-06)
* The *fixed* crate now requires rustc version 1.39.0 or later.
@ -80,21 +85,21 @@ 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.0/fixed/traits/trait.Fixed.html
[`checked_div_euclid_int`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.checked_div_euclid_int
[`checked_rem_euclid_int`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.checked_rem_euclid_int
[`div_euclid_int`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.div_euclid_int
[`from_be_bytes`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.from_be_bytes
[`from_le_bytes`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.from_le_bytes
[`from_ne_bytes`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.from_ne_bytes
[`overflowing_div_euclid_int`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.overflowing_div_euclid_int
[`overflowing_rem_euclid_int`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.overflowing_rem_euclid_int
[`rem_euclid_int`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.rem_euclid_int
[`to_be_bytes`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.to_be_bytes
[`to_le_bytes`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.to_le_bytes
[`to_ne_bytes`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.to_ne_bytes
[`wrapping_div_euclid_int`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.wrapping_div_euclid_int
[`wrapping_rem_euclid_int`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.wrapping_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
#### Incompatible changes
@ -109,11 +114,11 @@ The conversions supported cover the following cases.
[`saturating_mul_int`], [`saturating_abs`]
* Support for casts using the [*az* crate] was added.
[`saturating_abs`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.saturating_abs
[`saturating_add`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.saturating_add
[`saturating_mul_int`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.saturating_mul_int
[`saturating_sub`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.saturating_sub
[`saturating_neg`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.saturating_neg
[`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
@ -183,7 +188,7 @@ it in your crate, add it as a dependency inside [*Cargo.toml*]:
```toml
[dependencies]
fixed = "0.5.0"
fixed = "0.5.1"
```
The *fixed* crate requires rustc version 1.39.0 or later.
@ -208,7 +213,7 @@ To enable features, you can add the dependency like this to
```toml
[dependencies.fixed]
version = "0.5.0"
version = "0.5.1"
features = ["f16", "serde"]
```
@ -240,38 +245,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.0/fixed/struct.FixedI128.html
[`FixedI16`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI16.html
[`FixedI32`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html
[`FixedI64`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI64.html
[`FixedI8`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI8.html
[`FixedU128`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedU128.html
[`FixedU16`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedU16.html
[`FixedU32`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedU32.html
[`FixedU64`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedU64.html
[`FixedU8`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedU8.html
[`FromFixed`]: https://docs.rs/fixed/0.5.0/fixed/traits/trait.FromFixed.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
[`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.0/fixed/types/type.I20F12.html
[`I4F12`]: https://docs.rs/fixed/0.5.0/fixed/types/type.I4F12.html
[`I4F4`]: https://docs.rs/fixed/0.5.0/fixed/types/type.I4F4.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
[`Into`]: https://doc.rust-lang.org/nightly/core/convert/trait.Into.html
[`LossyFrom`]: https://docs.rs/fixed/0.5.0/fixed/traits/trait.LossyFrom.html
[`LossyInto`]: https://docs.rs/fixed/0.5.0/fixed/traits/trait.LossyInto.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
[`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.0/fixed/struct.ParseFixedError.html
[`ToFixed`]: https://docs.rs/fixed/0.5.0/fixed/traits/trait.ToFixed.html
[`U12`]: https://docs.rs/fixed/0.5.0/fixed/types/extra/type.U12.html
[`U20F12`]: https://docs.rs/fixed/0.5.0/fixed/types/type.U20F12.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
[`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.0/fixed/struct.FixedI32.html#method.checked_from_num
[`checked_from_num`]: https://docs.rs/fixed/0.5.1/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.0/fixed/struct.FixedI32.html#method.from_num
[`from_str_binary`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.from_str_binary
[`from_str_hex`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.from_str_hex
[`from_str_octal`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.from_str_octal
[`to_num`]: https://docs.rs/fixed/0.5.0/fixed/struct.FixedI32.html#method.to_num
[`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
[const generics]: https://github.com/rust-lang/rust/issues/44580

View File

@ -5,6 +5,12 @@ 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.1 (2019-12-22)
==========================
* `ParseFixedError` implements `Error` when the new `std` feature is
enabled.
Version 0.5.0 (2019-12-06)
==========================

View File

@ -137,7 +137,7 @@ it in your crate, add it as a dependency inside [*Cargo.toml*]:
```toml
[dependencies]
fixed = "0.5.0"
fixed = "0.5.1"
```
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.0"
version = "0.5.1"
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.0")]
#![doc(html_root_url = "https://docs.rs/fixed/0.5.1")]
#![doc(test(attr(deny(warnings))))]
#![cfg_attr(feature = "fail-on-warnings", deny(warnings))]
#![allow(clippy::type_repetition_in_bounds)]