Skip to content

Commit

Permalink
Release v0.20.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
iliekturtles committed Sep 7, 2018
1 parent d6e46f7 commit fef4129
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 8 deletions.
42 changes: 39 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,44 @@
### Fixed
### Security
-->
## [v0.19.0] - 2018-06-21
## [v0.20.0] — 2018-09-06
This release resolves long-standing issue [#3](https://github.com/iliekturtles/uom/issues/3) to
implement thermodynamic temperature conversions (e.g. Celsius to Fahrenheit). Support is also added
for multiple quantities of the same dimension (e.g. thermodynamic temperature and temperature
interval, ratio and angle).

The release also contains a number of internal changes including a reorganization of tests into
multiple files and updated CI setup to provide faster builds and more feature test coverage.

### Added
* [#3](https://github.com/iliekturtles/uom/issues/3) Implement thermodynamic temperature
conversions (e.g. Celsius to Fahrenheit). Extend the `quantity!` macro to accept a coefficient
and optional constant factor in the `$conversion` parameter to support these conversions.
* [#14](https://github.com/iliekturtles/uom/issues/14) Implement `FromStr`.
* [#78](https://github.com/iliekturtles/uom/issues/78) Add a `Kind` associated type to
`Dimensions`.The new `Kind` associated type, defaulting to `uom::Kind`, allows for multiple
quantities that have the same dimensions. Quantities of different kinds are not comparable. The
marker traits implemented by a quantity's `Kind` control which operations are automatically
implemented.
* [#95](https://github.com/iliekturtles/uom/issues/95) `TemperatureInterval` quantity added.
Includes `Add`, `AddAssign`, `Sub`, and `SubAssign` implementations between thermodynamic
temperature and temperature interval.

### Changed
* [Breaking] Remove unused `_unit: N` parameters and require turbofish syntax for `get`, `floor`,
`ceil`, `round`, `trunc`, and `fract` methods of `Quantity`. This is a breaking change and can
easily be resolved. e.g. `l.get(meter)` becomes `l.get::<meter>()`.
* [#98](https://github.com/iliekturtles/uom/issues/98),
[#100](https://github.com/iliekturtles/uom/issues/100) Correct `uom` feature hygiene in macro
generated code. Previously the `system!` macro generated code that included
`#[cfg(feature = "...")]` attributes on code in the crate executing the `system!` macro. With
this fix these attributes will be eagerly evaluated and only generate code when the appropriate
`uom` feature is enabled.
* Spelling corrections for a number of documentation comments and unit abbreviations.

## [v0.19.0] — 2018-06-21
This release adds a number of additional quantities, configures `uom` to use `rustfmt`, and directly
referrences `num` sub-crates to better control feature selection.
references `num` sub-crates to better control feature selection.

### Added
* `Capacitance` quantity added.
Expand Down Expand Up @@ -242,7 +277,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.19.0...master
[Unreleased]: https://github.com/iliekturtles/uom/compare/v0.20.0...master
[v0.20.0]: https://github.com/iliekturtles/uom/compare/v0.19.0...v0.20.0
[v0.19.0]: https://github.com/iliekturtles/uom/compare/v0.18.0...v0.19.0
[v0.18.0]: https://github.com/iliekturtles/uom/compare/v0.17.0...v0.18.0
[v0.17.0]: https://github.com/iliekturtles/uom/compare/v0.16.0...v0.17.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.19.0"
version = "0.20.0"
authors = ["Mike Boutin <mike.boutin@gmail.com>"]
description = "Units of measurement"
documentation = "https://docs.rs/uom"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Units of measurement is a crate that does automatic type-safe zero-cost

```toml
[dependencies]
uom = "0.19.0"
uom = "0.20.0"
```

and this to your crate root:
Expand Down Expand Up @@ -73,7 +73,7 @@ enabled by default. Features can be cherry-picked by using the `--no-default-fea
```toml
[dependencies]
uom = {
version = "0.19.0",
version = "0.20.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.19.0"
//! uom = "0.20.0"
//! ```
//!
//! and this to your crate root:
Expand Down Expand Up @@ -61,7 +61,7 @@
//! ```toml
//! [dependencies]
//! uom = {
//! version = "0.19.0",
//! version = "0.20.0",
//! default-features = false,
//! features = [
//! "autoconvert", # automatic base unit conversion.
Expand Down

0 comments on commit fef4129

Please sign in to comment.