Skip to content

Commit

Permalink
Release v0.31.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
iliekturtles committed Jan 5, 2021
1 parent 8d92cf4 commit b19d09f
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 6 deletions.
36 changes: 35 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,39 @@
### Fixed
### Security
-->
## [v0.31.0] — 2021-01-05
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](https://github.com/bheisler),
[CreepySkeleton](https://github.com/CreepySkeleton),
[DusterTheFirst](https://github.com/DusterTheFirst), [Lucretiel](https://github.com/Lucretiel), and
[neoeinstein](https://github.com/neoeinstein) for pull requests included and issues resolved in
this release.

### Added
* [#173](https://github.com/iliekturtles/uom/issues/173) Allow new units to be defined using
`unit!` outside of `quantity!`. When using the pre-built SI system included with `uom` this
macro allows for new units to quickly be defined without requiring a release.
[Pull requests](https://github.com/iliekturtles/uom/pulls) to add new units upstream area
always greatly appreciated.
* [#215](https://github.com/iliekturtles/uom/pull/215) Add `Units` enum and
`fn units() -> impl Iterator<Item = Units>` function for each quantity.
* [#227](https://github.com/iliekturtles/uom/issues/227) Ensure `UnwindSafe` and `RefUnwindSafe`
are implemented.
* [#217](https://github.com/iliekturtles/uom/pull/217) Add trait implementations for `Display` and
`Error` to `ParseQuantityError`.

### Changed
* [#214](https://github.com/iliekturtles/uom/pull/214) The `FromStr` implementation for quantities
now supports the unit singular and plural descriptions in addition to the unit abbreviation.
* [#225](https://github.com/iliekturtles/uom/pull/225) Convert CI to use Github Actions. This
change fixes a number of problems with the old system and greatly improves build times.
* [#223](https://github.com/iliekturtles/uom/issues/223) Correct build regressions introduced
while no test job was run with the old CI system.

## [v0.30.0] — 2020-10-17
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
Expand Down Expand Up @@ -510,7 +543,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.30.0...master
[Unreleased]: https://github.com/iliekturtles/uom/compare/v0.31.0...master
[v0.31.0]: https://github.com/iliekturtles/uom/compare/v0.30.0...v0.31.0
[v0.30.0]: https://github.com/iliekturtles/uom/compare/v0.29.0...v0.30.0
[v0.29.0]: https://github.com/iliekturtles/uom/compare/v0.28.0...v0.29.0
[v0.28.0]: https://github.com/iliekturtles/uom/compare/v0.27.0...v0.28.0
Expand Down
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.30.0"
version = "0.31.0"
edition = "2018"
authors = ["Mike Boutin <[email protected]>"]
description = "Units of measurement"
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.30.0"
uom = "0.31.0"
```

and this to your crate root:
Expand Down Expand Up @@ -79,7 +79,7 @@ enabled by default. Features can be cherry-picked by using the `--no-default-fea
```toml
[dependencies]
uom = {
version = "0.30.0",
version = "0.31.0",
default-features = false,
features = [
"autoconvert", # automatic base unit conversion.
Expand Down
4 changes: 2 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.30.0"
//! uom = "0.31.0"
//! ```
//!
//! and this to your crate root:
Expand Down Expand Up @@ -66,7 +66,7 @@
//! ```toml
//! [dependencies]
//! uom = {
//! version = "0.30.0",
//! version = "0.31.0",
//! default-features = false,
//! features = [
//! "autoconvert", # automatic base unit conversion.
Expand Down

0 comments on commit b19d09f

Please sign in to comment.