Skip to content

Commit e05dab3

Browse files
committed
Release v0.16.0.
1 parent 662fb77 commit e05dab3

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

CHANGELOG.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,19 @@
1010
### Security
1111
-->
1212

13-
## [Unreleased]
13+
## [v0.16.0] - 2017-12-21
14+
This release contains significant changes in order to support underlying storage types that
15+
implement the `Num` trait beyond `f32` and `f64`. Many changes are breaking: marker traits are
16+
simplified and fewer macros are exported. New storage types are not enabled by default and can be
17+
used by including the corresponding feature. See the changes below for full details.
1418

1519
### Added
1620
* Add missing `#[derive(Hash)]` attributes.
21+
* [#29](https://github.com/iliekturtles/uom/issues/29) A new macro, `storage_types!`, is now
22+
available to duplicate code on a per-storage type basis. See macro documentation for full
23+
details. The minimum supported `rustc` version is now 1.20.0.
1724

18-
### Change
25+
### Changed
1926
* [#29](https://github.com/iliekturtles/uom/issues/29) Underlying storage type now uses the `Num`
2027
trait from the [`num`](https://crates.io/crates/num) crate instead of fixed implementations for
2128
`f32` and `f64`. Features for all types implementing `Num` have been added and control the
@@ -38,9 +45,6 @@
3845
factor.
3946
* `uom::ConversionFactor<V>` added to represent conversion factors for underlying storage types
4047
where the type can't be used (e.g. `i32`'s conversion factor is represented as `Rational32`.)
41-
* [#29](https://github.com/iliekturtles/uom/issues/29) A new macro, `storage_types!`, is now
42-
available to duplicate code on a per-storage type basis. See macro documentation for full
43-
details. The minimum supported `rustc` version is now 1.20.0.
4448
* [Breaking] Macro usage and definitions have been simplified and consolidated. `quantities!`,
4549
`replace_ty!`, and `unit!` have been consolidated as "private" match arms of their calling macro.
4650
In order to reduce the chance of macro name collisions `$quantities!` is the only remaining
@@ -149,7 +153,8 @@ for the creation of custom systems or the use of the pre-built SI. Basic mathema
149153
are implemented and a minimal set of quantities (length, mass, time...) and units (meter, kilometer,
150154
foot, mile, ...) are included.
151155

152-
[Unreleased]: https://github.com/iliekturtles/uom/compare/v0.15.0...master
156+
[Unreleased]: https://github.com/iliekturtles/uom/compare/v0.16.0...master
157+
[v0.16.0]: https://github.com/iliekturtles/uom/compare/v0.15.0...v0.16.0
153158
[v0.15.0]: https://github.com/iliekturtles/uom/compare/v0.14.0...v0.15.0
154159
[v0.14.0]: https://github.com/iliekturtles/uom/compare/v0.13.0...v0.14.0
155160
[v0.13.0]: https://github.com/iliekturtles/uom/compare/v0.12.0...v0.13.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.15.0"
3+
version = "0.16.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
@@ -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.15.0"
30+
uom = "0.16.0"
3131
```
3232

3333
and this to your crate root:
@@ -71,7 +71,7 @@ or specifying features in Cargo.toml:
7171
```toml
7272
[dependencies]
7373
uom = {
74-
version = "0.15.0",
74+
version = "0.16.0",
7575
default-features = false,
7676
features = [
7777
"usize", "u8", "u16", "u32", "u64", # Unsigned integer storage types.

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.15.0"
21+
//! uom = "0.16.0"
2222
//! ```
2323
//!
2424
//! and this to your crate root:
@@ -60,7 +60,7 @@
6060
//! ```toml
6161
//! [dependencies]
6262
//! uom = {
63-
//! version = "0.15.0",
63+
//! version = "0.16.0",
6464
//! default-features = false,
6565
//! features = [
6666
//! "usize", "u8", "u16", "u32", "u64", # Unsigned integer storage types.

0 commit comments

Comments
 (0)