Skip to content

Commit

Permalink
Release v0.36.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
iliekturtles committed Mar 21, 2024
1 parent c360507 commit 096f15e
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 7 deletions.
42 changes: 41 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <mike.boutin@gmail.com>"]
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.
Expand Down
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//!
//! ```toml
//! [dependencies]
//! uom = "0.35.0"
//! uom = "0.36.0"
//! ```
//!
//! and this to your crate root:
Expand All @@ -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::<uom::si::time::nanosecond>();
//! }
//!
//! fn calc_acceleration(velocity: Velocity, time: Time) -> Acceleration {
Expand All @@ -66,7 +69,7 @@
//! ```toml
//! [dependencies]
//! uom = {
//! version = "0.35.0",
//! version = "0.36.0",
//! default-features = false,
//! features = [
//! "autoconvert", # automatic base unit conversion.
Expand Down

0 comments on commit 096f15e

Please sign in to comment.