From 096f15e0468aa4383616074486a632bbdc392cb4 Mon Sep 17 00:00:00 2001 From: Mike Boutin Date: Wed, 20 Mar 2024 20:16:31 -0400 Subject: [PATCH] Release v0.36.0. --- CHANGELOG.md | 42 +++++++++++++++++++++++++++++++++++++++++- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 4 ++-- src/lib.rs | 7 +++++-- 5 files changed, 50 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a99039d..4e502e6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,45 @@ ### Removed ### Fixed --> +## [v0.36.0] — 2024-03-20 +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](https://github.com/Aehmlo), [Code-Maniac](https://github.com/Code-Maniac), +[baarkerlounger](https://github.com/baarkerlounger), [g1aeder](https://github.com/g1aeder), +[hellow554](https://github.com/hellow554), [igiona](https://github.com/igiona), +[waywardmonkeys](https://github.com/waywardmonkeys), and +[yacinelakel](https://github.com/yacinelakel) for pull requests included and issues resolved in this +release. + +### Added + * [#429](https://github.com/iliekturtles/uom/pull/429) Add `minute_per_kilometer` unit to + `InverseVelocity`. + * [#436](https://github.com/iliekturtles/uom/pull/436) Add explicit `serde` feature. The new + `serde` feature deprecates the old `use_serde` feature which is now an alias for `serde` and will + be removed in a future `uom` release. + * [#446](https://github.com/iliekturtles/uom/pull/446) Add `ArealHeatCapacity` quantity. + * [#450](https://github.com/iliekturtles/uom/pull/450) Add `ThermalResistance` quantity. + +### Changed + * [#425](https://github.com/iliekturtles/uom/pull/425) Clarify `Conversion` documentation for + converting to and from the base unit. + * [#432](https://github.com/iliekturtles/uom/pull/432) Use `Cargo.toml` `rust-version` key to + identify the MSRV (minimum supported Rust version). + * [#445](https://github.com/iliekturtles/uom/pull/445) Update basic example with example code to do + unit conversions. + * [#456](https://github.com/iliekturtles/uom/pull/456) Commit `Cargo.lock` to pin certain crates to + specific versions that support `uom`'s MSRV (minimum supported Rust version). + * [#459](https://github.com/iliekturtles/uom/pull/459) Increase MSRV (minimum supported Rust + version) to `1.65.0`. No changes in this release require the new MSRV. + * [#457](https://github.com/iliekturtles/uom/pull/457) Update github `checkout` and `cache` actions + to `v4`. + * [#459](https://github.com/iliekturtles/uom/pull/459) Rust 1.76.0 is now used for `rustfmt`, + `clippy`, and `tarpaulin` jobs. + * [#443](https://github.com/iliekturtles/uom/pull/443), + [#459](https://github.com/iliekturtles/uom/pull/459) Resolve numerous `rustc` and `clippy` + warnings. + ## [v0.35.0] — 2023-07-10 This release adds new quantities, bumps the MSRV (minimum supported Rust version) to 1.60.0, and fixes bitrot in Github actions. @@ -738,7 +777,8 @@ for the creation of custom systems or the use of the pre-built SI. Basic mathema are implemented and a minimal set of quantities (length, mass, time...) and units (meter, kilometer, foot, mile, ...) are included. -[Unreleased]: https://github.com/iliekturtles/uom/compare/v0.35.0...master +[Unreleased]: https://github.com/iliekturtles/uom/compare/v0.36.0...master +[v0.36.0]: https://github.com/iliekturtles/uom/compare/v0.35.0...v0.36.0 [v0.35.0]: https://github.com/iliekturtles/uom/compare/v0.34.0...v0.35.0 [v0.34.0]: https://github.com/iliekturtles/uom/compare/v0.33.0...v0.34.0 [v0.33.0]: https://github.com/iliekturtles/uom/compare/v0.32.0...v0.33.0 diff --git a/Cargo.lock b/Cargo.lock index 27a9aa29..0a6a4ceb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -288,7 +288,7 @@ checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] name = "uom" -version = "0.35.0" +version = "0.36.0" dependencies = [ "approx", "num-bigint", diff --git a/Cargo.toml b/Cargo.toml index 0c89c859..66acf49c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uom" -version = "0.35.0" +version = "0.36.0" edition = "2018" rust-version = "1.65.0" authors = ["Mike Boutin "] diff --git a/README.md b/README.md index 6b862ec8..d496e497 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Units of measurement is a crate that does automatic type-safe zero-cost ```toml [dependencies] -uom = "0.35.0" +uom = "0.36.0" ``` and this to your crate root: @@ -82,7 +82,7 @@ enabled by default. Features can be cherry-picked by using the `--no-default-fea ```toml [dependencies] uom = { - version = "0.35.0", + version = "0.36.0", default-features = false, features = [ "autoconvert", # automatic base unit conversion. diff --git a/src/lib.rs b/src/lib.rs index 91546b5b..532eb6fc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,7 +18,7 @@ //! //! ```toml //! [dependencies] -//! uom = "0.35.0" +//! uom = "0.36.0" //! ``` //! //! and this to your crate root: @@ -44,6 +44,9 @@ //! let velocity/*: Velocity*/ = length / time; //! let _acceleration = calc_acceleration(velocity, time); //! //let error = length + time; // error[E0308]: mismatched types +//! +//! // Get a quantity value in a specific unit. +//! let time_in_nano_seconds = time.get::(); //! } //! //! fn calc_acceleration(velocity: Velocity, time: Time) -> Acceleration { @@ -66,7 +69,7 @@ //! ```toml //! [dependencies] //! uom = { -//! version = "0.35.0", +//! version = "0.36.0", //! default-features = false, //! features = [ //! "autoconvert", # automatic base unit conversion.