Changelog Crates.io

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Unreleased

0.3.1 - 2018-11-15

Fixed

  • Macros that refer to other internal macros can now be imported when compiling for Rust 2018 (issue #10)

0.3.0 - 2018-11-14

Changed

  • Bumped minimum supported (automatically tested) Rust version to 1.24.0
  • Moved message parameter for assert_cfg!() to last argument position, making it consistent with other macros

Removed

  • No need to use macro!(label; ...) syntax when compiling on nightly Rust and enabling the nightly feature flag

0.2.5 - 2017-12-12

Changed

  • assert_eq_size_ptr wraps its code inside of a closure, ensuring that the unsafe code inside never runs
  • Clippy no longer warns about unneeded_field_pattern within assert_fields

Added

  • Much better documentation with test examples that are guaranteed to fail at compile-time

Removed

  • Removed testing features; compile failure tests are now done via doc tests

0.2.4 - 2017-12-11

Removed

  • Removed the actual call to mem::transmute while still utilizing it for size verification (Simon Sapin, #5)

Added

  • assert_cfg macro that asserts that the given configuration is set
  • assert_fields macro to assert that a struct type or enum variant has a given field

Fixed

  • Allow more generics flexibility in assert_impl

0.2.3 - 2017-08-24

Fixed

  • Trailing commas are now allowed

Removed

  • Removed clippy warnings

0.2.2 - 2017-08-13

Added

  • Added assert_impl macro to ensure a type implements a given set of traits

0.2.1 - 2017-08-13

Added

  • Added assert_obj_safe macro for ensuring that a trait is object-safe

0.2.0 - 2017-08-12

Added

  • Added assert_eq_size_ptr macro

Fixed

  • Allow assert_eq_size, const_assert, and const_assert_eq in non-function contexts via providing a unique label #1

Removed

  • [Breaking] Semicolon-separated assert_eq_size is no longer allowed

0.1.1 - 2017-08-12

Added

  • Added const_assert_eq macro

0.1.0 - 2017-08-12

Initial release