Skip to content

Commit

Permalink
Release v0.32.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
iliekturtles committed Jan 14, 2022
1 parent fa8ce84 commit 23caf8d
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 5 deletions.
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,46 @@
### Fixed
### Security
-->
## [v0.32.0] — 2022-01-14
This release adds one new quantity, `MolarHeatCapacity`, a new trait, `ConstZero`, and many internal
improvements. The `quickcheck` 1.0 update uncovered a number of issues with floating point precision
that were able to be resolved while still maintaining zero-cost guarantees.

Many thanks to [adamreichold](https://github.com/adamreichold), [B-Reif](https://github.com/B-Reif),
[remilauzier](https://github.com/remilauzier), and [T-Bakker](https://github.com/T-Bakker) for pull
requests included and issues resolved in this release.

### Added
* [#250](https://github.com/iliekturtles/uom/pull/250) Add `ConstZero` trait which is implemented
by `Quantity`.
* [#263](https://github.com/iliekturtles/uom/pull/263) `MolarHeatCapacity` quantity added.

### Changed
* [#258](https://github.com/iliekturtles/uom/pull/258) Use `RUSTFLAGS="-D warnings"` in CI to
ensure that `rustc` warnings and caught and fail their respective workflows.
* [Breaking] Rename `Conversion::into_conversion` to `Conversion::conversion`. Name change resolves
`Clippy` `wrong_self_convention` warnings.
* [#260](https://github.com/iliekturtles/uom/pull/260) Increase minimum supported `rustc` version
to 1.43.0. Required to support `quickcheck` 1.0.
* [#260](https://github.com/iliekturtles/uom/pull/260) Update to `quickcheck` 1.0. Change required
the MSRV update as well as refactoring `from_base`, `to_base`, and multiple tests. The
`from_base` and `to_base` changes provide better floating point precision while still maintaining
zero-cost guarantees. The test changes better handle floating point precision issues as well as
the wider range of values generated by `quickcheck` 1.0's `Arbitrary` implementation.
* [#268](https://github.com/iliekturtles/uom/pull/268) Clarify `powi` documentation.

### Deprecated
* [#260](https://github.com/iliekturtles/uom/pull/260) Deprecate `try-from` feature. The feature
will be removed in a future release of `uom`. Functionality previously exposed by the feature is
now enabled by default.

### Fixed
* [#252](https://github.com/iliekturtles/uom/pull/252) Fix links within the documentation to use
https. Many previously used http and were broken.
* [#260](https://github.com/iliekturtles/uom/pull/260) Fix `TryFrom<Duration> for Time<U, V>`.
Previously the conversion used the `Duration`'s subsecond microseconds as nanoseconds. The
conversion now correct uses the subsecond nanoseconds.

## [v0.31.1] — 2021-03-01
This release corrects documentation issues and documents fewer underlying
storage types on docs.rs so that container time and memory limits are not
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "uom"
version = "0.31.1"
version = "0.32.0"
edition = "2018"
authors = ["Mike Boutin <[email protected]>"]
description = "Units of measurement"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Units of measurement is a crate that does automatic type-safe zero-cost

```toml
[dependencies]
uom = "0.31.1"
uom = "0.32.0"
```

and this to your crate root:
Expand Down Expand Up @@ -79,7 +79,7 @@ enabled by default. Features can be cherry-picked by using the `--no-default-fea
```toml
[dependencies]
uom = {
version = "0.31.1",
version = "0.32.0",
default-features = false,
features = [
"autoconvert", # automatic base unit conversion.
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//!
//! ```toml
//! [dependencies]
//! uom = "0.31.1"
//! uom = "0.32.0"
//! ```
//!
//! and this to your crate root:
Expand Down Expand Up @@ -66,7 +66,7 @@
//! ```toml
//! [dependencies]
//! uom = {
//! version = "0.31.1",
//! version = "0.32.0",
//! default-features = false,
//! features = [
//! "autoconvert", # automatic base unit conversion.
Expand Down

0 comments on commit 23caf8d

Please sign in to comment.