Skip to content

v0.14.0

Choose a tag to compare

@iliekturtles iliekturtles released this 30 May 21:26
· 599 commits to master since this release

Added

  • [Breaking] A new feature, std, is now available and is enabled by default. uom can still be compiled with no_std by using --no-default-features when compiling the crate or default-features = false in the dependencies section of Cargo.toml
  • #11 cbrt, recip, and sqrt are implemented for Quantity.

Changed

  • #28 Quantity fields made public in order to allow library users to create const values and instances of non-named quantities. e.g. const TIME_STEP: Time = Quantity { dimension: PhantomData, units: PhantomData, value: 0.1 }; This functionality will be deprecated and subsequently removed once the const fn feature is stabilized.
  • Tests now run for all enabled underlying storage types (f32, f64).

Fixed

  • Fixed incorrect conversion factor when multiplying or dividing Quantitys with different base units.