v0.31.0
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 ofquantity!. When using the pre-built SI system included withuomthis 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
Unitsenum andfn units() -> impl Iterator<Item = Units>function for each quantity. - #227 Ensure
UnwindSafeandRefUnwindSafeare implemented. - #217 Add trait implementations for
DisplayandErrortoParseQuantityError.
Changed
- #214 The
FromStrimplementation 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.