Skip to content

Commit 23caf8d

Browse files
committed
Release v0.32.0.
1 parent fa8ce84 commit 23caf8d

File tree

4 files changed

+45
-5
lines changed

4 files changed

+45
-5
lines changed

CHANGELOG.md

+40
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,46 @@
99
### Fixed
1010
### Security
1111
-->
12+
## [v0.32.0] — 2022-01-14
13+
This release adds one new quantity, `MolarHeatCapacity`, a new trait, `ConstZero`, and many internal
14+
improvements. The `quickcheck` 1.0 update uncovered a number of issues with floating point precision
15+
that were able to be resolved while still maintaining zero-cost guarantees.
16+
17+
Many thanks to [adamreichold](https://github.com/adamreichold), [B-Reif](https://github.com/B-Reif),
18+
[remilauzier](https://github.com/remilauzier), and [T-Bakker](https://github.com/T-Bakker) for pull
19+
requests included and issues resolved in this release.
20+
21+
### Added
22+
* [#250](https://github.com/iliekturtles/uom/pull/250) Add `ConstZero` trait which is implemented
23+
by `Quantity`.
24+
* [#263](https://github.com/iliekturtles/uom/pull/263) `MolarHeatCapacity` quantity added.
25+
26+
### Changed
27+
* [#258](https://github.com/iliekturtles/uom/pull/258) Use `RUSTFLAGS="-D warnings"` in CI to
28+
ensure that `rustc` warnings and caught and fail their respective workflows.
29+
* [Breaking] Rename `Conversion::into_conversion` to `Conversion::conversion`. Name change resolves
30+
`Clippy` `wrong_self_convention` warnings.
31+
* [#260](https://github.com/iliekturtles/uom/pull/260) Increase minimum supported `rustc` version
32+
to 1.43.0. Required to support `quickcheck` 1.0.
33+
* [#260](https://github.com/iliekturtles/uom/pull/260) Update to `quickcheck` 1.0. Change required
34+
the MSRV update as well as refactoring `from_base`, `to_base`, and multiple tests. The
35+
`from_base` and `to_base` changes provide better floating point precision while still maintaining
36+
zero-cost guarantees. The test changes better handle floating point precision issues as well as
37+
the wider range of values generated by `quickcheck` 1.0's `Arbitrary` implementation.
38+
* [#268](https://github.com/iliekturtles/uom/pull/268) Clarify `powi` documentation.
39+
40+
### Deprecated
41+
* [#260](https://github.com/iliekturtles/uom/pull/260) Deprecate `try-from` feature. The feature
42+
will be removed in a future release of `uom`. Functionality previously exposed by the feature is
43+
now enabled by default.
44+
45+
### Fixed
46+
* [#252](https://github.com/iliekturtles/uom/pull/252) Fix links within the documentation to use
47+
https. Many previously used http and were broken.
48+
* [#260](https://github.com/iliekturtles/uom/pull/260) Fix `TryFrom<Duration> for Time<U, V>`.
49+
Previously the conversion used the `Duration`'s subsecond microseconds as nanoseconds. The
50+
conversion now correct uses the subsecond nanoseconds.
51+
1252
## [v0.31.1] — 2021-03-01
1353
This release corrects documentation issues and documents fewer underlying
1454
storage types on docs.rs so that container time and memory limits are not

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "uom"
3-
version = "0.31.1"
3+
version = "0.32.0"
44
edition = "2018"
55
authors = ["Mike Boutin <mike.boutin@gmail.com>"]
66
description = "Units of measurement"

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Units of measurement is a crate that does automatic type-safe zero-cost
2727

2828
```toml
2929
[dependencies]
30-
uom = "0.31.1"
30+
uom = "0.32.0"
3131
```
3232

3333
and this to your crate root:
@@ -79,7 +79,7 @@ enabled by default. Features can be cherry-picked by using the `--no-default-fea
7979
```toml
8080
[dependencies]
8181
uom = {
82-
version = "0.31.1",
82+
version = "0.32.0",
8383
default-features = false,
8484
features = [
8585
"autoconvert", # automatic base unit conversion.

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//!
1919
//! ```toml
2020
//! [dependencies]
21-
//! uom = "0.31.1"
21+
//! uom = "0.32.0"
2222
//! ```
2323
//!
2424
//! and this to your crate root:
@@ -66,7 +66,7 @@
6666
//! ```toml
6767
//! [dependencies]
6868
//! uom = {
69-
//! version = "0.31.1",
69+
//! version = "0.32.0",
7070
//! default-features = false,
7171
//! features = [
7272
//! "autoconvert", # automatic base unit conversion.

0 commit comments

Comments
 (0)