diff --git a/CHANGELOG.md b/CHANGELOG.md index 12e59ba5..58373f82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,26 @@ ### Security --> +## [v0.24.0] — 2019-06-20 +This release fixes two separate issues to ensure that zero-cost code is generated. Many thanks to +[raimundomartins](https://github.com/raimundomartins), [apopiak](https://github.com/apopiak), and +[gnzlbg](https://github.com/gnzlbg) for pull requests included and issues resolved in this release. + +### Added + * [#145](https://github.com/iliekturtles/uom/issues/145) Add `#[repr(transparent)]` to `Quantity` + to ensure that the ABI of the underlying storage type is used instead of struct ABI in FFI + contexts. + +### Changed + * [#148](https://github.com/iliekturtles/uom/pull/148) Increase minimum supported `rustc` version + to 1.28.0. Required to support `#[repr(transparent)]`. + +### Fixed + * [#143](https://github.com/iliekturtles/uom/issues/143) Correct `to_base` and `from_base` to be + zero-cost for float storage types. + * [#147](https://github.com/iliekturtles/uom/pull/147) Correct typos in README and crate-level + documentation. + ## [v0.23.1] — 2019-05-29 This release fixes an issue with the `autoconvert` feature introduced in [v0.23.0]. Many thanks to [dmit](https://github.com/dmit) for pull requests included in this release. @@ -384,8 +404,9 @@ 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.23.1...master -[v0.23.0]: https://github.com/iliekturtles/uom/compare/v0.23.0...v0.23.1 +[Unreleased]: https://github.com/iliekturtles/uom/compare/v0.24.0...master +[v0.24.0]: https://github.com/iliekturtles/uom/compare/v0.23.1...v0.24.0 +[v0.23.1]: https://github.com/iliekturtles/uom/compare/v0.23.0...v0.23.1 [v0.23.0]: https://github.com/iliekturtles/uom/compare/v0.22.2...v0.23.0 [v0.22.2]: https://github.com/iliekturtles/uom/compare/v0.22.1...v0.22.2 [v0.22.1]: https://github.com/iliekturtles/uom/compare/v0.22.0...v0.22.1 diff --git a/Cargo.toml b/Cargo.toml index 8dd4d145..95d90098 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uom" -version = "0.23.1" +version = "0.24.0" authors = ["Mike Boutin "] description = "Units of measurement" documentation = "https://docs.rs/uom" diff --git a/README.md b/README.md index e89c5639..ce900c2e 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Units of measurement is a crate that does automatic type-safe zero-cost ```toml [dependencies] -uom = "0.23.1" +uom = "0.24.0" ``` and this to your crate root: @@ -77,7 +77,7 @@ enabled by default. Features can be cherry-picked by using the `--no-default-fea ```toml [dependencies] uom = { - version = "0.23.1", + version = "0.24.0", default-features = false, features = [ "autoconvert", # automatic base unit conversion. diff --git a/src/lib.rs b/src/lib.rs index 22bc5f2c..b5d8c812 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,7 +18,7 @@ //! //! ```toml //! [dependencies] -//! uom = "0.23.1" +//! uom = "0.24.0" //! ``` //! //! and this to your crate root: @@ -66,7 +66,7 @@ //! ```toml //! [dependencies] //! uom = { -//! version = "0.23.1", +//! version = "0.24.0", //! default-features = false, //! features = [ //! "autoconvert", # automatic base unit conversion.