Releases: iliekturtles/uom
v0.37.0
This release adds new quantities, new units, updates uom to 2021 edition, and fixes bitrot exposed by the latest tools.
Many thanks to aevyrie, boondocklabs, caspermeijn, cutlerjake, elsandosgrande, mkdjr, Netzwerk2, nsunderland1, and portyanikhin for pull requests included and issues resolved in this release.
Added
- #479 Add
AngularMomentumquantity. - #489 Add
ton_long_per_cubic_footandton_short_per_cubic_footunits toMassDensity. - #489 Add numerous units to
SpecificVolume. - #502 Add
inch_per_minuteunit toVelocity. - #507 Add
SurfaceTensionquantity. - #508 Add
KinematicViscosityquantity. - Add
gram_forceunit toForce.
Changed
- #477 Replace relative URLs in documents with Rust item links.
- #516 Rust 1.86.0 is now used for
rustfmt,clippy, andtarpaulinjobs. - #514 Update to 2021 edition.
- Automatically check unit validity by replacing explicit
TypeIdchecks withConversion::is_validcalls.
Fixed
- #462 Fix abbreviations for units in
MassPerEnergy. - #473 Fix abbreviations for units in
InverseVelocity. - #478 Fix NIST Special Publication 811 links.
- #500 Resolve
unexpected_cfgwarnings caused bycfgreferences in macro-generated code. - Correct
cargo-clippy/clippyfeature usage for--check-cfg. - Resolve
clippyempty docs warnings.
v0.36.0
This release adds new quantities, new units, bumps the MSRV (minimum supported Rust version) to 1.65.0, and fixes bitrot in Github actions.
Many thanks to Aehmlo, Code-Maniac, baarkerlounger, g1aeder, hellow554, igiona, waywardmonkeys, and yacinelakel for pull requests included and issues resolved in this release.
Added
- #429 Add
minute_per_kilometerunit toInverseVelocity. - #436 Add explicit
serdefeature. The newserdefeature deprecates the olduse_serdefeature which is now an alias forserdeand will be removed in a futureuomrelease. - #446 Add
ArealHeatCapacityquantity. - #450 Add
ThermalResistancequantity.
Changed
- #425 Clarify
Conversiondocumentation for converting to and from the base unit. - #432 Use
Cargo.tomlrust-versionkey to identify the MSRV (minimum supported Rust version). - #445 Update basic example with example code to do unit conversions.
- #456 Commit
Cargo.lockto pin certain crates to specific versions that supportuom's MSRV (minimum supported Rust version). - #459 Increase MSRV (minimum supported Rust version) to
1.65.0. No changes in this release require the new MSRV. - #457 Update github
checkoutandcacheactions tov4. - #459 Rust 1.76.0 is now used for
rustfmt,clippy, andtarpaulinjobs. - #443, #459 Resolve numerous
rustcandclippywarnings.
v0.35.0
This release adds new quantities, bumps the MSRV (minimum supported Rust version) to 1.60.0, and
fixes bitrot in Github actions.
Many thanks to calbaker, groscoe2, professoralex13, robinohs, and Uzaaft for pull requests included and issues resolved in this release.
Added
- #406 Add
cubic_meter_per_minuteandcubic_meter_per_hourunits toVolumeRate. - #409 Add
AngularAbsementquantity. - #410 Add
MassPerEnergyquantity. - #417 [Breaking] Correct
ThermalConductancemeter_perunits to bemeter_squared_per. Descriptions and abbreviations were already correct. - #419 Add
PowerRatequantity. - #420 Add
InverseVelocityquantity.
Changed
- #314 Update Github actions to use
dtolnay/rust-toolchain.actions-rsis no longer maintained. - #387 Increase MSRV (minimum supported Rust version) to
1.60.0. No changes in this release require the new MSRV.
Fixed
- Fix unnecessary qualifications warnings in quantity tests.
v0.34.0
This release adds a significant number of new quantities and units as well as a few minor fixes.
Many thanks to adamreichold, calbaker, Eagle941, jossriLDR, swaits, Uzaaft werdahias, and zdimension for pull requests included and issues resolved in this release. Special thanks to crystal-growth for the thirty nine pull requests included in this release.
Added
- #318 Add
particleunits toAmountOfSubstance,CatalyticActivity,CatalyticActivityConcentration,MolarConcentration,MolarEnergy, andMolarHeatCapacityquantities. - #319 Add
MolarFluxquantity. - #322 Add
DiffusionCoefficientquantity. - #323 Add
DynamicViscosityquantity. - #324 Add atomic units of energy, mass, length, electric charge, and current.
- #325 Add
Actionquantity. - #326 Add
ElectricFieldquantity. - #327 Add
ElectricDipoleMomentandElectricQuadrupoleMomentquantities. - #329 Add
ElectricalMobilityquantity. - #330 Add
ElectricalResistivityquantity. - #331 Add
ElectricalConductivityquantity. - #332 Add
ElectricPermittivityquantity. - #333 Add
ElectricCurrentDensityquantity. - #334 Add
ArealNumberDensity,LinearNumberDensity, andVolumetricNumberDensityquantities. - #335 Add
ReciprocalLengthquantity. - #336 Add
MassFluxquantity. - #337 Add
MagneticPermeabilityquantity. - #339 Add
ArealNumberRate,LinearNumberRate, andVolumetricNumberRatequantities. - #341 Add
ArealMassDensity,LinearMassDensity, andVolumetricMassDensityquantities. - #342 Add
SurfaceElectricCurrentDensityquantity. - #343 Add
MagneticMomentquantity. - #344 Add
ElectricChargeArealDensity,ElectricChargeLinearDensity, andElectricChargeVolumetricDensityquantities. - #345 Add
ElectricDisplacementFieldquantity. - #346 Add
MagneticFieldStrengthquantity. - #347 Add
MolarVolumequantity. - #348 Add
ElectricFluxquantity. - #349 Add
TemperatureGradientquantity. - #350 Add
LinearPowerDensityandVolumetricPowerDensityquantities as well as additionalHeatFluxDensityunits. - #351 Add
standard_gravityunit toAcceleration. - #352 Add
SpecificAreaandSpecificVolumequantities. - #353 Add
boltzmann_constantunit toHeatCapacityandmolar_gas_constantunit toMolarHeatCapacity. - #354 Add
TemperatureCoefficientquantity. - #355 Add
ArealDensityOfStates,LinearDensityOfStates, andVolumetricDensityOfStatesquantities. - #356 Add
MomentOfInertiaquantity. - #358 Add molar flow rate units to
AmountOfSubstanceandCatalyticActivity. - #361 Add
atomic_unit_of_velocity,natural_unit_of_velocityandspeed_of_light_in_vacuumunits toVelocity. - #368 Add quantities for
Radioactivity,MolarRadioactivity, andSpecificRadioactivityas well as additionalVolumetricNumberRateunits. - #369 Add
VolumetricHeatCapacityquantity as well as additionalHeatCapacityandSpecificHeatCapacityunits. - #370 Add
Molalityquantity. - #388 Add
FrequencyDriftquantity. - #396 Add
SpecificPowerquantity. - #399 Add
liter per minuteunit toVolumeRateandnewton per square millimeterunit toPressure. - #405 Add
ton_per_minute,ton_per_hour, andton_per_dayunits toMassRate. - #408 Add
ThermalConductancequantity.
Fixed
v0.33.0
This release adds one new quantity, Absement. Two new underlying storage types, Complex32 and Complex64. Eight new exponential and logarithmic functions on Ratio and changes to use #[must_use] and #[non_exhaustive].
Many thanks to adamreichold, gonzaponte, jacg, nick-pascucci-spire, and TobTobXX for pull requests included and issues resolved in this release.
Added
- #284, #285
Absementquantity added. - #287 Add support for
Complex32andComplex64as underlying storage types. - #290 Implement
exp2,exp_m1,exp,ln_1p,ln,log10,log2, andlogforRatio. - #306 Add missing
#[must_use]on all methods returning a value.must_use_candidateandreturn_self_not_must_useclippy lints are now enabled to ensure future methods include the attribute.
Changed
- #272 Improve documentation on how to enable
serdeforbig*andrational*underlying storage types. - Enable
#[non_exhaustive]onUnitsenums. The#[doc(hidden)] __nonexhaustivetrick is not longer used.
v0.32.0
This release adds one new quantity, MolarHeatCapacity, a new trait, ConstZero, and many internal improvements. The quickcheck 1.0 update uncovered a number of issues with floating point precision that were able to be resolved while still maintaining zero-cost guarantees.
Many thanks to adamreichold, B-Reif, remilauzier, and T-Bakker for pull requests included and issues resolved in this release.
Added
Changed
- #258 Use
RUSTFLAGS="-D warnings"in CI to ensure thatrustcwarnings and caught and fail their respective workflows. - [Breaking] Rename
Conversion::into_conversiontoConversion::conversion. Name change resolvesClippywrong_self_conventionwarnings. - #260 Increase minimum supported
rustcversion to 1.43.0. Required to supportquickcheck1.0. - #260 Update to
quickcheck1.0. Change required the MSRV update as well as refactoringfrom_base,to_base, and multiple tests. Thefrom_baseandto_basechanges provide better floating point precision while still maintaining zero-cost guarantees. The test changes better handle floating point precision issues as well as the wider range of values generated byquickcheck1.0'sArbitraryimplementation. - #268 Clarify
powidocumentation.
Deprecated
- #260 Deprecate
try-fromfeature. The feature will be removed in a future release ofuom. Functionality previously exposed by the feature is now enabled by default.
Fixed
v0.31.1
This release corrects documentation issues and documents fewer underlying storage types on docs.rs so that container time and memory limits are not exceeded.
Added
- #241 Run
rustdocas part of tool checks and resolve previously ignored warnings.
Changed
- #241 Document fewer underlying storage types on docs.rs so that container time and memory limits are not exceeded. Previous releases documented all features and caused documentation to fail to build.
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.
v0.30.0
This release adds a new quantity, RadiantExposure, implements Unpin for Quantity and upgrades uom to the 2018 edition. These changes also include an increase of the minimum supported rustc to 1.37.0. Many thanks to nicodemus26 and (Michael-F-Bryan)[https://github.com/Michael-F-Bryan] for pull requests included and issues resolved in this release.
Added
Changed
v0.29.0
This release includes a number of changes for Angle, the addition of SolidAngle, and a new units for Energy and Luminance. Many thanks to adamreichold, AnickaBurova, and Atmelfan for pull requests included and issues resolved in this release.
Added
- #196
SolidAnglequantity added. - #191 Add constants to
AngleandSolidAnglerepresenting half and full turns. - #194 Add
foot-candleunit toLuminance. - #200
electronvolt-basedEnergyunits added.
Changed
- #192 Use
f{32|64}::powiinstead ofTypenum::Pow::powi. - #123 Change examples to use
Displayinstead ofDebug.
Removed
- #188 [Breaking] Remove
From/Intoimpls forAngleandSolidAngle.