Releases: iliekturtles/uom
Releases · iliekturtles/uom
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
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 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 theUnit
trait. The originalUnit<V>
trait has been renamedConversion<V>
. - #12
Debug
manually 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.
v0.11.0
Proof-of-concept functionality for type-safe zero-cost dimensional analysis.
uom
0.11.0 allows for the creation of custom systems or the use of the
pre-built SI. Basic mathematical operations are implemented and a minimal set
of quantities (length, mass, time...) and units (meter, kilometer, foot, mile,
...) are included.