Releases: iliekturtles/uom
v0.27.0
v0.26.0
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 betweenstd::time::Duration
anduom::si::Time
. - #151 Trigonometric functions added to
Angle
.
Changed
- Increase minimum supported
rustc
version to 1.31.0. Required to because of backwards incompatibilities withCargo.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
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
, ...) andInformationRate
(bit/s
,byte/s
, ...) quantities added. Units for both SI (kilo
,mega
, ...) and binary (kibi
,mebi
, ...) prefixes are included. - #85 Add support for
i128
andu128
as underlying storage types. - #160
AngularJerk
quantity added.
Changed
v0.24.0
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)]
toQuantity
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
v0.23.1
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 theautoconvert
feature and no longer cause a compile error when the feature is disabled.
v.23.0
This release adds three new quantities, AngularAcceleration
, AngularVelocity
, and Torque
. Changes to make Kind
s 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
andsi::marker
to hold SI specific marker traits.From
implementations forAngleKind
added to more easily convert betweenuom::Kind
andsi::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
toMassDensity
. A type alias forDensity
is available for backwards compatibility. - #127 Make all SI quantity documentation follow a single, consistent format.
Deprecated
- #130
Density
has been renamed toMassDensity
and is deprecated.Density
will be removed in some future release.
v0.22.2
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
andVelocity
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
, andtarpaulin
jobs. rustfmt
configuration updated.clippy
configuration corrected to run for all packages.
- Rust 1.34.0 is now used for
v0.22.1
v0.22.0
This release adds the Momentum
quantity and additional liter
-based volume
units.
Added
Changed
- Continuous integration setup updated and improved.
- Rust 1.33.0 is now used for
rustfmt
,clippy
, andtarpaulin
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.
- Rust 1.33.0 is now used for
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 ensureuom
remains usable in Rust 2018 code.