2017-09-22 22:09:12 +00:00
|
|
|
# Changelog [![Crates.io][crate-badge]][crate]
|
|
|
|
All notable changes to this project will be documented in this file.
|
2017-08-24 21:17:30 +00:00
|
|
|
|
2017-09-22 22:09:12 +00:00
|
|
|
The format is based on [Keep a Changelog] and this project adheres to
|
|
|
|
[Semantic Versioning].
|
2017-08-24 21:17:30 +00:00
|
|
|
|
2017-09-22 22:09:12 +00:00
|
|
|
## [Unreleased]
|
2017-11-08 20:00:09 +00:00
|
|
|
### Removed
|
|
|
|
- Removed the actual call to `mem::transmute` while still utilizing it for size
|
|
|
|
verification ([Simon Sapin], [#5])
|
|
|
|
|
2017-09-22 22:17:32 +00:00
|
|
|
### Added
|
2017-12-11 08:45:11 +00:00
|
|
|
- `assert_cfg` macro that asserts that the given configuration is set
|
2017-09-22 22:17:32 +00:00
|
|
|
- `assert_fields` macro to assert that a struct type or enum variant has a given
|
|
|
|
field
|
|
|
|
|
|
|
|
### Fixed
|
|
|
|
- Allow more generics flexibility in `assert_impl`
|
2017-08-24 21:17:30 +00:00
|
|
|
|
2017-09-22 22:09:12 +00:00
|
|
|
## [0.2.3] - 2017-08-24
|
2017-09-22 22:20:12 +00:00
|
|
|
### Fixed
|
2017-08-24 21:21:21 +00:00
|
|
|
- Trailing commas are now allowed
|
|
|
|
|
2017-09-22 22:09:12 +00:00
|
|
|
### Removed
|
|
|
|
- Removed clippy warnings
|
2017-08-24 21:17:30 +00:00
|
|
|
|
2017-09-22 22:09:12 +00:00
|
|
|
## [0.2.2] - 2017-08-13
|
|
|
|
### Added
|
2017-08-24 21:17:30 +00:00
|
|
|
- Added `assert_impl` macro to ensure a type implements a given set of traits
|
|
|
|
|
2017-09-22 22:09:12 +00:00
|
|
|
## [0.2.1] - 2017-08-13
|
|
|
|
### Added
|
2017-08-24 21:17:30 +00:00
|
|
|
- Added `assert_obj_safe` macro for ensuring that a trait is object-safe
|
|
|
|
|
2017-09-22 22:09:12 +00:00
|
|
|
## [0.2.0] - 2017-08-12
|
|
|
|
### Added
|
2017-08-24 21:17:30 +00:00
|
|
|
- Added `assert_eq_size_ptr` macro
|
2017-09-22 22:20:12 +00:00
|
|
|
|
|
|
|
### Fixed
|
2017-09-22 22:09:12 +00:00
|
|
|
- Allow `assert_eq_size`, `const_assert`, and `const_assert_eq` in non-function
|
|
|
|
contexts via providing a unique label [#1]
|
2017-08-24 21:17:30 +00:00
|
|
|
|
2017-09-22 22:09:12 +00:00
|
|
|
### Removed
|
|
|
|
- **[Breaking]** Semicolon-separated `assert_eq_size` is no longer allowed
|
2017-08-24 21:17:30 +00:00
|
|
|
|
2017-09-22 22:09:12 +00:00
|
|
|
## [0.1.1] - 2017-08-12
|
|
|
|
### Added
|
2017-08-24 21:17:30 +00:00
|
|
|
- Added `const_assert_eq` macro
|
|
|
|
|
2017-09-22 22:09:12 +00:00
|
|
|
## 0.1.0 - 2017-08-12
|
|
|
|
|
|
|
|
Initial release
|
2017-08-24 21:17:30 +00:00
|
|
|
|
2017-11-08 20:00:09 +00:00
|
|
|
[Simon Sapin]: https://github.com/SimonSapin
|
|
|
|
|
2017-09-22 22:09:12 +00:00
|
|
|
[#1]: https://github.com/nvzqz/static-assertions-rs/issues/1
|
2017-11-08 20:00:09 +00:00
|
|
|
[#5]: https://github.com/nvzqz/static-assertions-rs/pull/5
|
2017-08-24 21:17:30 +00:00
|
|
|
|
2017-09-22 22:09:12 +00:00
|
|
|
[crate]: https://crates.io/crates/static_assertions
|
|
|
|
[crate-badge]: https://img.shields.io/crates/v/static_assertions.svg
|
2017-08-24 21:17:30 +00:00
|
|
|
|
2017-09-22 22:09:12 +00:00
|
|
|
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/
|
|
|
|
[Semantic Versioning]: http://semver.org/spec/v2.0.0.html
|
2017-08-24 21:17:30 +00:00
|
|
|
|
2017-09-22 22:12:29 +00:00
|
|
|
[Unreleased]: https://github.com/nvzqz/static-assertions-rs/compare/v0.2.3...HEAD
|
2017-09-22 22:09:12 +00:00
|
|
|
[0.2.3]: https://github.com/nvzqz/static-assertions-rs/compare/v0.2.2...v0.2.3
|
|
|
|
[0.2.2]: https://github.com/nvzqz/static-assertions-rs/compare/v0.2.1...v0.2.2
|
|
|
|
[0.2.1]: https://github.com/nvzqz/static-assertions-rs/compare/v0.2.0...v0.2.1
|
|
|
|
[0.2.0]: https://github.com/nvzqz/static-assertions-rs/compare/v0.1.1...v0.2.0
|
|
|
|
[0.1.1]: https://github.com/nvzqz/static-assertions-rs/compare/v0.1.0...v0.1.1
|