Skip to content

v0.31.0

Compare
Choose a tag to compare
@iliekturtles iliekturtles released this 05 Jan 13:35
· 226 commits to master since this release

This release adds a new macro, unit!, to allow for units to be defined outside of the quantity! macro as well as a Units enum for each quantity. A number of standard library traits are implemented. Build regressions caused by issues with the CI system and changes in Rust are now fixed.

Many thanks to bheisler, CreepySkeleton, DusterTheFirst, Lucretiel, and neoeinstein for pull requests included and issues resolved in this release.

Added

  • #173 Allow new units to be defined using unit! outside of quantity!. When using the pre-built SI system included with uom this macro allows for new units to quickly be defined without requiring a release. Pull requests to add new units upstream area always greatly appreciated.
  • #215 Add Units enum and fn units() -> impl Iterator<Item = Units> function for each quantity.
  • #227 Ensure UnwindSafe and RefUnwindSafe are implemented.
  • #217 Add trait implementations for Display and Error to ParseQuantityError.

Changed

  • #214 The FromStr implementation for quantities now supports the unit singular and plural descriptions in addition to the unit abbreviation.
  • #225 Convert CI to use Github Actions. This change fixes a number of problems with the old system and greatly improves build times.
  • #223 Correct build regressions introduced while no test job was run with the old CI system.