Repository navigation
v0.12.0
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
Lengthunits 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 thedescription()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 newabbreviation(),singular(), andplural()methods on theUnittrait. The originalUnit<V>trait has been renamedConversion<V>. - #12
Debugmanually implemented forQuantity<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.