Skip to content

Commit fef4129

Browse files
committed
Release v0.20.0.
1 parent d6e46f7 commit fef4129

File tree

4 files changed

+44
-8
lines changed

4 files changed

+44
-8
lines changed

CHANGELOG.md

+39-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,44 @@
99
### Fixed
1010
### Security
1111
-->
12-
## [v0.19.0] - 2018-06-21
12+
## [v0.20.0] — 2018-09-06
13+
This release resolves long-standing issue [#3](https://github.com/iliekturtles/uom/issues/3) to
14+
implement thermodynamic temperature conversions (e.g. Celsius to Fahrenheit). Support is also added
15+
for multiple quantities of the same dimension (e.g. thermodynamic temperature and temperature
16+
interval, ratio and angle).
17+
18+
The release also contains a number of internal changes including a reorganization of tests into
19+
multiple files and updated CI setup to provide faster builds and more feature test coverage.
20+
21+
### Added
22+
* [#3](https://github.com/iliekturtles/uom/issues/3) Implement thermodynamic temperature
23+
conversions (e.g. Celsius to Fahrenheit). Extend the `quantity!` macro to accept a coefficient
24+
and optional constant factor in the `$conversion` parameter to support these conversions.
25+
* [#14](https://github.com/iliekturtles/uom/issues/14) Implement `FromStr`.
26+
* [#78](https://github.com/iliekturtles/uom/issues/78) Add a `Kind` associated type to
27+
`Dimensions`.The new `Kind` associated type, defaulting to `uom::Kind`, allows for multiple
28+
quantities that have the same dimensions. Quantities of different kinds are not comparable. The
29+
marker traits implemented by a quantity's `Kind` control which operations are automatically
30+
implemented.
31+
* [#95](https://github.com/iliekturtles/uom/issues/95) `TemperatureInterval` quantity added.
32+
Includes `Add`, `AddAssign`, `Sub`, and `SubAssign` implementations between thermodynamic
33+
temperature and temperature interval.
34+
35+
### Changed
36+
* [Breaking] Remove unused `_unit: N` parameters and require turbofish syntax for `get`, `floor`,
37+
`ceil`, `round`, `trunc`, and `fract` methods of `Quantity`. This is a breaking change and can
38+
easily be resolved. e.g. `l.get(meter)` becomes `l.get::<meter>()`.
39+
* [#98](https://github.com/iliekturtles/uom/issues/98),
40+
[#100](https://github.com/iliekturtles/uom/issues/100) Correct `uom` feature hygiene in macro
41+
generated code. Previously the `system!` macro generated code that included
42+
`#[cfg(feature = "...")]` attributes on code in the crate executing the `system!` macro. With
43+
this fix these attributes will be eagerly evaluated and only generate code when the appropriate
44+
`uom` feature is enabled.
45+
* Spelling corrections for a number of documentation comments and unit abbreviations.
46+
47+
## [v0.19.0] — 2018-06-21
1348
This release adds a number of additional quantities, configures `uom` to use `rustfmt`, and directly
14-
referrences `num` sub-crates to better control feature selection.
49+
references `num` sub-crates to better control feature selection.
1550

1651
### Added
1752
* `Capacitance` quantity added.
@@ -242,7 +277,8 @@ for the creation of custom systems or the use of the pre-built SI. Basic mathema
242277
are implemented and a minimal set of quantities (length, mass, time...) and units (meter, kilometer,
243278
foot, mile, ...) are included.
244279

245-
[Unreleased]: https://github.com/iliekturtles/uom/compare/v0.19.0...master
280+
[Unreleased]: https://github.com/iliekturtles/uom/compare/v0.20.0...master
281+
[v0.20.0]: https://github.com/iliekturtles/uom/compare/v0.19.0...v0.20.0
246282
[v0.19.0]: https://github.com/iliekturtles/uom/compare/v0.18.0...v0.19.0
247283
[v0.18.0]: https://github.com/iliekturtles/uom/compare/v0.17.0...v0.18.0
248284
[v0.17.0]: https://github.com/iliekturtles/uom/compare/v0.16.0...v0.17.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.19.0"
3+
version = "0.20.0"
44
authors = ["Mike Boutin <mike.boutin@gmail.com>"]
55
description = "Units of measurement"
66
documentation = "https://docs.rs/uom"

README.md

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

2929
```toml
3030
[dependencies]
31-
uom = "0.19.0"
31+
uom = "0.20.0"
3232
```
3333

3434
and this to your crate root:
@@ -73,7 +73,7 @@ enabled by default. Features can be cherry-picked by using the `--no-default-fea
7373
```toml
7474
[dependencies]
7575
uom = {
76-
version = "0.19.0",
76+
version = "0.20.0",
7777
default-features = false,
7878
features = [
7979
"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.19.0"
21+
//! uom = "0.20.0"
2222
//! ```
2323
//!
2424
//! and this to your crate root:
@@ -61,7 +61,7 @@
6161
//! ```toml
6262
//! [dependencies]
6363
//! uom = {
64-
//! version = "0.19.0",
64+
//! version = "0.20.0",
6565
//! default-features = false,
6666
//! features = [
6767
//! "autoconvert", # automatic base unit conversion.

0 commit comments

Comments
 (0)