Skip to content

Releases: iliekturtles/uom

v0.27.0

21 May 17:31
Compare
Choose a tag to compare

This release adds a number of quantities.

Added

  • #167 CatalyticActivity, CatalyticActivityConcentration, MassConcentration, and MolarConcentration quantities added.
  • #175 Curvature quantity added.

v0.26.0

21 May 17:32
Compare
Choose a tag to compare

This release adds a number of thermodynamic quantities in addition to TryFrom implementations for Time and trigonometric functions on Angle.

Added

  • #164 HeatFluxDensity quantity added.
  • #155 HeatCapacity, HeatTransfer, MolarEnergy, MolarMass, SpecificHeatCapacity, ThermalConductivity quantities added.
  • #150 TryFrom implemented between std::time::Duration and uom::si::Time.
  • #151 Trigonometric functions added to Angle.

Changed

  • Increase minimum supported rustc version to 1.31.0. Required to because of backwards incompatibilities with Cargo.toml edition keyword. cfg-if introducted the keyword in a minor version update and other issues with the keyword prompted the update.

v0.25.0

13 Aug 02:09
Compare
Choose a tag to compare

This release includes the long-requested Information and InformationRate quantities as well as support for i128/u128 as underlying storage types. A number of documentation updates, including for the 9th edition of the SI, are also included.

Added

  • #31 Information (bit, byte, ...) and InformationRate (bit/s, byte/s, ...) quantities added. Units for both SI (kilo, mega, ...) and binary (kibi, mebi, ...) prefixes are included.
  • #85 Add support for i128 and u128 as underlying storage types.
  • #160 AngularJerk quantity added.

Changed

  • #20 Document generic parameters.
  • #21 Move links inline for trait methods to work around documentation generation bug.
  • #111 Update documentation for SI base units for the 9th edition of the SI.
  • #127 Remove superscripts for power 1 to keep all SI documentation consistent.

v0.24.0

20 Jun 12:20
Compare
Choose a tag to compare

This release fixes two separate issues to ensure that zero-cost code is generated. Many thanks to raimundomartins, apopiak, and gnzlbg for pull requests included and issues resolved in this release.

Added

  • #145 Add #[repr(transparent)] to Quantity to ensure that the ABI of the underlying storage type is used instead of struct ABI in FFI contexts.

Changed

  • #148 Increase minimum supported rustc version to 1.28.0. Required to support #[repr(transparent)].

Fixed

  • #143 Correct to_base and from_base to be zero-cost for float storage types.
  • #147 Correct typos in README and crate-level documentation.

v0.23.1

29 May 18:36
Compare
Choose a tag to compare

This release fixes an issue with the autoconvert feature introduced in v0.23.0. Many thanks to dmit for pull requests included in this release.

Fixed

  • #141 From implementations to convert between quantities of different kinds now correctly use the autoconvert feature and no longer cause a compile error when the feature is disabled.

v.23.0

13 May 21:05
Compare
Choose a tag to compare

This release adds three new quantities, AngularAcceleration, AngularVelocity, and Torque. Changes to make Kinds more ergonomic to use are also included along with documentation changes. Many thanks to dunmatt and Aehmlo for pull requests included in this release.

Added

  • #136 AngularAcceleration quantity added.
  • #135 AngularVelocity quantity added.
  • #117 Torque quantity added.
  • Introduce AngleKind and si::marker to hold SI specific marker traits. From implementations for AngleKind added to more easily convert between uom::Kind and si::marker::AngleKind.
  • Allow documentation to be specified for base quantities in the system! macro. Documentation for the seven base SI quantities added.

Changed

  • #138 Maintain kind when multiplying a number by a quantity. Multiplying a quantity by a number already maintains kind.
  • #130 Rename Density to MassDensity. A type alias for Density is available for backwards compatibility.
  • #127 Make all SI quantity documentation follow a single, consistent format.

Deprecated

  • #130 Density has been renamed to MassDensity and is deprecated. Density will be removed in some future release.

v0.22.2

28 Apr 13:50
Compare
Choose a tag to compare

This release adds Angle and Jerk quantities along with unit additions and conversion precision improvements to Acceleration and Velocity. Many thanks to dunmatt and nicodemus26 respectively.

Added

  • #89 Angle quantity added.
  • #128 Jerk quantity added. Acceleration and Velocity units added and precision for some existing units improved.

Changed

  • Continuous integration setup updated and improved.
    • Rust 1.34.0 is now used for rustfmt, clippy, and tarpaulin jobs.
    • rustfmt configuration updated.
    • clippy configuration corrected to run for all packages.

v0.22.1

03 Apr 01:00
Compare
Choose a tag to compare

This release adds additional liter-based VolumeRate units.

Added

  • #121 Liter-based VolumeRate units added.

v0.22.0

31 Mar 02:16
Compare
Choose a tag to compare

This release adds the Momentum quantity and additional liter-based volume units.

Added

  • #114 Momentum quantity added.
  • #116 Liter-based volume units added.

Changed

  • Continuous integration setup updated and improved.
    • Rust 1.33.0 is now used for rustfmt, clippy, and tarpaulin jobs.
    • The deny warnings job is joined into the clippy job.
    • The stable + tests job has been updated to catch errors with non-default underlying storage types in SI quantity tests.

Fixed

  • #119 Macros corrected to generate valid code for both 2015 and 2018 editions. Previously the doc test on the $quantities! macro would fail in a Rust 2018 crate. A new test crate, edition_check, was added to ensure uom remains usable in Rust 2018 code.

v0.21.1

10 Mar 19:11
Compare
Choose a tag to compare

This release adds a few new units for ElectricCharge and Energy.

Added

  • #112 Additional ElectricCharge and Energy units added.