Skip to content

v0.12.0

Choose a tag to compare

@iliekturtles iliekturtles released this 01 Apr 20:40
· 624 commits to master since this release

Continuous integration was setup to ensure that uom builds on stable, beta, nightly, and 1.15.0
(the minimum rustc version). Quantity descriptions, unit abbreviations, and unit descriptions
added. Additional length units added to demonstrate the simplicity of the process.

Added

  • #1 Additional Length units added.
  • [Breaking] The quantity! macro accepts comments on units. To resolve macro parsing ambiguities each unit must be prefixed with an @.
  • #19 [Breaking] The quantity! macro includes the quantity description. The description can be accessed using the description() method in quantity submodules.
  • #19 [Breaking] The quantity! macro includes unit abbreviations as well as singular and plural descriptions. These values can be accessed from new abbreviation(), singular(), and plural() methods on the Unit trait. The original Unit<V> trait has been renamed Conversion<V>.
  • #12 Debug manually implemented for Quantity<D, U, V> to show the underlying value and associated units.
  • Test and compile-fail test modules setup. compile-fail tests for mismatched quantities and units added.