add unwrapped experimental feature

This commit is contained in:
Trevor Spiteri 2020-09-17 16:58:26 +02:00
parent 1b5a5b39ae
commit 7a03bd6364
4 changed files with 26 additions and 0 deletions

View File

@ -23,6 +23,7 @@ autobenches = false
f16 = ["half"]
fail-on-warnings = []
std = []
unwrapped = []
[dependencies]
typenum = "1.10"

View File

@ -78,6 +78,14 @@ The conversions supported cover the following cases.
## Whats new
### Version 1.3.0 news (unreleased)
* The new experimental feature [`unwrapped`][feat-un-1-3] was added,
providing arithmetic methods that panic on overflow even when
debug assertions are disabled.
[feat-un-1-3]: https://tspiteri.gitlab.io/fixed/dev/fixed/#experimental-optional-features
### Version 1.2.0 news (2020-09-02)
* The [`const_fixed_from_int!`][cffi-1-2] macro was added to make it
@ -206,6 +214,10 @@ There is one experimental feature:
1. `num-traits`, disabled by default. This implements some traits
from the [*num-traits* crate] .
2. `unwrapped`, disabled by default. This adds methods for arithmetic
that panic on overflow even when debug assertions are disabled,
similar to how wrapping methods will wrap even when debug
assertions are enabled.
## License

View File

@ -5,6 +5,15 @@ 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 1.3.0 (unreleased)
==========================
* The new experimental feature [`unwrapped`][feat-un-1-3] was added,
providing arithmetic methods that panic on overflow even when
debug assertions are disabled.
[feat-un-1-3]: https://tspiteri.gitlab.io/fixed/dev/fixed/#experimental-optional-features
Version 1.2.0 (2020-09-02)
==========================

View File

@ -187,6 +187,10 @@ There is one experimental feature:
1. `num-traits`, disabled by default. This implements some traits
from the [*num-traits* crate] .
2. `unwrapped`, disabled by default. This adds methods for arithmetic
that panic on overflow even when debug assertions are disabled,
similar to how wrapping methods will wrap even when debug
assertions are enabled.
## License