Skip to content

Commit b19d09f

Browse files
committed
Release v0.31.0.
1 parent 8d92cf4 commit b19d09f

File tree

4 files changed

+40
-6
lines changed

4 files changed

+40
-6
lines changed

CHANGELOG.md

+35-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,39 @@
99
### Fixed
1010
### Security
1111
-->
12+
## [v0.31.0] — 2021-01-05
13+
This release adds a new macro, `unit!`, to allow for units to be defined outside of the
14+
`quantity!` macro as well as a `Units` enum for each quantity. A number of standard library
15+
traits are implemented. Build regressions caused by issues with the CI system and changes in
16+
Rust are now fixed.
17+
18+
Many thanks to [bheisler](https://github.com/bheisler),
19+
[CreepySkeleton](https://github.com/CreepySkeleton),
20+
[DusterTheFirst](https://github.com/DusterTheFirst), [Lucretiel](https://github.com/Lucretiel), and
21+
[neoeinstein](https://github.com/neoeinstein) for pull requests included and issues resolved in
22+
this release.
23+
24+
### Added
25+
* [#173](https://github.com/iliekturtles/uom/issues/173) Allow new units to be defined using
26+
`unit!` outside of `quantity!`. When using the pre-built SI system included with `uom` this
27+
macro allows for new units to quickly be defined without requiring a release.
28+
[Pull requests](https://github.com/iliekturtles/uom/pulls) to add new units upstream area
29+
always greatly appreciated.
30+
* [#215](https://github.com/iliekturtles/uom/pull/215) Add `Units` enum and
31+
`fn units() -> impl Iterator<Item = Units>` function for each quantity.
32+
* [#227](https://github.com/iliekturtles/uom/issues/227) Ensure `UnwindSafe` and `RefUnwindSafe`
33+
are implemented.
34+
* [#217](https://github.com/iliekturtles/uom/pull/217) Add trait implementations for `Display` and
35+
`Error` to `ParseQuantityError`.
36+
37+
### Changed
38+
* [#214](https://github.com/iliekturtles/uom/pull/214) The `FromStr` implementation for quantities
39+
now supports the unit singular and plural descriptions in addition to the unit abbreviation.
40+
* [#225](https://github.com/iliekturtles/uom/pull/225) Convert CI to use Github Actions. This
41+
change fixes a number of problems with the old system and greatly improves build times.
42+
* [#223](https://github.com/iliekturtles/uom/issues/223) Correct build regressions introduced
43+
while no test job was run with the old CI system.
44+
1245
## [v0.30.0] — 2020-10-17
1346
This release adds a new quantity, `RadiantExposure`, implements `Unpin` for `Quantity` and
1447
upgrades `uom` to the 2018 edition. These changes also include an increase of the minimum
@@ -510,7 +543,8 @@ for the creation of custom systems or the use of the pre-built SI. Basic mathema
510543
are implemented and a minimal set of quantities (length, mass, time...) and units (meter, kilometer,
511544
foot, mile, ...) are included.
512545

513-
[Unreleased]: https://github.com/iliekturtles/uom/compare/v0.30.0...master
546+
[Unreleased]: https://github.com/iliekturtles/uom/compare/v0.31.0...master
547+
[v0.31.0]: https://github.com/iliekturtles/uom/compare/v0.30.0...v0.31.0
514548
[v0.30.0]: https://github.com/iliekturtles/uom/compare/v0.29.0...v0.30.0
515549
[v0.29.0]: https://github.com/iliekturtles/uom/compare/v0.28.0...v0.29.0
516550
[v0.28.0]: https://github.com/iliekturtles/uom/compare/v0.27.0...v0.28.0

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "uom"
3-
version = "0.30.0"
3+
version = "0.31.0"
44
edition = "2018"
55
authors = ["Mike Boutin <mike.boutin@gmail.com>"]
66
description = "Units of measurement"

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Units of measurement is a crate that does automatic type-safe zero-cost
2727

2828
```toml
2929
[dependencies]
30-
uom = "0.30.0"
30+
uom = "0.31.0"
3131
```
3232

3333
and this to your crate root:
@@ -79,7 +79,7 @@ enabled by default. Features can be cherry-picked by using the `--no-default-fea
7979
```toml
8080
[dependencies]
8181
uom = {
82-
version = "0.30.0",
82+
version = "0.31.0",
8383
default-features = false,
8484
features = [
8585
"autoconvert", # automatic base unit conversion.

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//!
1919
//! ```toml
2020
//! [dependencies]
21-
//! uom = "0.30.0"
21+
//! uom = "0.31.0"
2222
//! ```
2323
//!
2424
//! and this to your crate root:
@@ -66,7 +66,7 @@
6666
//! ```toml
6767
//! [dependencies]
6868
//! uom = {
69-
//! version = "0.30.0",
69+
//! version = "0.31.0",
7070
//! default-features = false,
7171
//! features = [
7272
//! "autoconvert", # automatic base unit conversion.

0 commit comments

Comments
 (0)