|
10 | 10 | ### Security
|
11 | 11 | -->
|
12 | 12 |
|
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. |
14 | 18 |
|
15 | 19 | ### Added
|
16 | 20 | * 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. |
17 | 24 |
|
18 |
| -### Change |
| 25 | +### Changed |
19 | 26 | * [#29](https://github.com/iliekturtles/uom/issues/29) Underlying storage type now uses the `Num`
|
20 | 27 | trait from the [`num`](https://crates.io/crates/num) crate instead of fixed implementations for
|
21 | 28 | `f32` and `f64`. Features for all types implementing `Num` have been added and control the
|
|
38 | 45 | factor.
|
39 | 46 | * `uom::ConversionFactor<V>` added to represent conversion factors for underlying storage types
|
40 | 47 | 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. |
44 | 48 | * [Breaking] Macro usage and definitions have been simplified and consolidated. `quantities!`,
|
45 | 49 | `replace_ty!`, and `unit!` have been consolidated as "private" match arms of their calling macro.
|
46 | 50 | 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
|
149 | 153 | are implemented and a minimal set of quantities (length, mass, time...) and units (meter, kilometer,
|
150 | 154 | foot, mile, ...) are included.
|
151 | 155 |
|
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 |
153 | 158 | [v0.15.0]: https://github.com/iliekturtles/uom/compare/v0.14.0...v0.15.0
|
154 | 159 | [v0.14.0]: https://github.com/iliekturtles/uom/compare/v0.13.0...v0.14.0
|
155 | 160 | [v0.13.0]: https://github.com/iliekturtles/uom/compare/v0.12.0...v0.13.0
|
|
0 commit comments