Skip to content

v0.32.0

Compare
Choose a tag to compare
@iliekturtles iliekturtles released this 14 Jan 20:50
· 183 commits to master since this release

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, B-Reif, remilauzier, and T-Bakker for pull requests included and issues resolved in this release.

Added

  • #250 Add ConstZero trait which is implemented by Quantity.
  • #263 MolarHeatCapacity quantity added.

Changed

  • #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 Increase minimum supported rustc version to 1.43.0. Required to support quickcheck 1.0.
  • #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 Clarify powi documentation.

Deprecated

  • #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 Fix links within the documentation to use https. Many previously used http and were broken.
  • #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.