mirror of
https://github.com/openharmony/third_party_rust_static-assertions-rs.git
synced 2026-06-30 21:57:56 -04:00
[Release] Prepare 1.1.0
This commit is contained in:
+4
-1
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog] and this project adheres to
|
|||||||
[Semantic Versioning].
|
[Semantic Versioning].
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.1.0] - 2019-11-03
|
||||||
### Added
|
### Added
|
||||||
- `assert_impl_any!` macro
|
- `assert_impl_any!` macro
|
||||||
- `assert_impl_one!` macro
|
- `assert_impl_one!` macro
|
||||||
@@ -162,7 +164,8 @@ Initial release
|
|||||||
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/
|
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/
|
||||||
[Semantic Versioning]: http://semver.org/spec/v2.0.0.html
|
[Semantic Versioning]: http://semver.org/spec/v2.0.0.html
|
||||||
|
|
||||||
[Unreleased]: https://github.com/nvzqz/static-assertions-rs/compare/v1.0.0...HEAD
|
[Unreleased]: https://github.com/nvzqz/static-assertions-rs/compare/v1.1.0...HEAD
|
||||||
|
[1.1.0]: https://github.com/nvzqz/static-assertions-rs/compare/v1.0.0...v1.1.0
|
||||||
[1.0.0]: https://github.com/nvzqz/static-assertions-rs/compare/v0.3.4...v1.0.0
|
[1.0.0]: https://github.com/nvzqz/static-assertions-rs/compare/v0.3.4...v1.0.0
|
||||||
[0.3.4]: https://github.com/nvzqz/static-assertions-rs/compare/v0.3.3...v0.3.4
|
[0.3.4]: https://github.com/nvzqz/static-assertions-rs/compare/v0.3.3...v0.3.4
|
||||||
[0.3.3]: https://github.com/nvzqz/static-assertions-rs/compare/v0.3.2...v0.3.3
|
[0.3.3]: https://github.com/nvzqz/static-assertions-rs/compare/v0.3.2...v0.3.3
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "static_assertions"
|
name = "static_assertions"
|
||||||
version = "1.0.0"
|
version = "1.1.0"
|
||||||
authors = ["Nikolai Vazquez"]
|
authors = ["Nikolai Vazquez"]
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ adding the following to your project's
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
static_assertions = "1.0.0"
|
static_assertions = "1.1.0"
|
||||||
```
|
```
|
||||||
|
|
||||||
and this to your crate root (`main.rs` or `lib.rs`):
|
and this to your crate root (`main.rs` or `lib.rs`):
|
||||||
@@ -53,9 +53,13 @@ This crate exposes the following macros:
|
|||||||
- [`assert_eq_size_val!`]
|
- [`assert_eq_size_val!`]
|
||||||
- [`assert_fields!`]
|
- [`assert_fields!`]
|
||||||
- [`assert_impl_all!`]
|
- [`assert_impl_all!`]
|
||||||
|
- [`assert_impl_any!`]
|
||||||
|
- [`assert_impl_one!`]
|
||||||
- [`assert_not_impl_all!`]
|
- [`assert_not_impl_all!`]
|
||||||
- [`assert_not_impl_any!`]
|
- [`assert_not_impl_any!`]
|
||||||
- [`assert_obj_safe!`]
|
- [`assert_obj_safe!`]
|
||||||
|
- [`assert_trait_sub_all!`]
|
||||||
|
- [`assert_trait_super_all!`]
|
||||||
- [`assert_type_eq_all!`]
|
- [`assert_type_eq_all!`]
|
||||||
- [`assert_type_ne_all!`]
|
- [`assert_type_ne_all!`]
|
||||||
- [`const_assert!`]
|
- [`const_assert!`]
|
||||||
@@ -119,7 +123,7 @@ This crate exposes the following macros:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
static_assertions = "1.0.0"
|
static_assertions = "1.1.0"
|
||||||
```
|
```
|
||||||
|
|
||||||
and then assertions can be conditionally run behind `#[cfg(test)]`:
|
and then assertions can be conditionally run behind `#[cfg(test)]`:
|
||||||
@@ -163,18 +167,22 @@ at your choosing.
|
|||||||
[pull request]: https://github.com/nvzqz/static-assertions-rs/pulls
|
[pull request]: https://github.com/nvzqz/static-assertions-rs/pulls
|
||||||
[docs]: https://docs.rs/static_assertions
|
[docs]: https://docs.rs/static_assertions
|
||||||
|
|
||||||
[`assert_cfg!`]: https://docs.rs/static_assertions/1.0.0/static_assertions/macro.assert_cfg.html
|
[`assert_cfg!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_cfg.html
|
||||||
[`assert_eq_align!`]: https://docs.rs/static_assertions/1.0.0/static_assertions/macro.assert_eq_align.html
|
[`assert_eq_align!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_eq_align.html
|
||||||
[`assert_eq_size!`]: https://docs.rs/static_assertions/1.0.0/static_assertions/macro.assert_eq_size.html
|
[`assert_eq_size!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_eq_size.html
|
||||||
[`assert_eq_size_ptr!`]: https://docs.rs/static_assertions/1.0.0/static_assertions/macro.assert_eq_size_ptr.html
|
[`assert_eq_size_ptr!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_eq_size_ptr.html
|
||||||
[`assert_eq_size_val!`]: https://docs.rs/static_assertions/1.0.0/static_assertions/macro.assert_eq_size_val.html
|
[`assert_eq_size_val!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_eq_size_val.html
|
||||||
[`assert_fields!`]: https://docs.rs/static_assertions/1.0.0/static_assertions/macro.assert_fields.html
|
[`assert_fields!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_fields.html
|
||||||
[`assert_impl_all!`]: https://docs.rs/static_assertions/1.0.0/static_assertions/macro.assert_impl_all.html
|
[`assert_impl_all!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_impl_all.html
|
||||||
[`assert_not_impl_all!`]: https://docs.rs/static_assertions/1.0.0/static_assertions/macro.assert_not_impl_all.html
|
[`assert_impl_any!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_impl_any.html
|
||||||
[`assert_not_impl_any!`]: https://docs.rs/static_assertions/1.0.0/static_assertions/macro.assert_not_impl_any.html
|
[`assert_impl_one!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_impl_one.html
|
||||||
[`assert_obj_safe!`]: https://docs.rs/static_assertions/1.0.0/static_assertions/macro.assert_obj_safe.html
|
[`assert_not_impl_all!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_not_impl_all.html
|
||||||
[`assert_type_eq_all!`]: https://docs.rs/static_assertions/1.0.0/static_assertions/macro.assert_type_eq_all.html
|
[`assert_not_impl_any!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_not_impl_any.html
|
||||||
[`assert_type_ne_all!`]: https://docs.rs/static_assertions/1.0.0/static_assertions/macro.assert_type_ne_all.html
|
[`assert_obj_safe!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_obj_safe.html
|
||||||
[`const_assert!`]: https://docs.rs/static_assertions/1.0.0/static_assertions/macro.const_assert.html
|
[`assert_trait_sub_all!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_trait_sub_all.html
|
||||||
[`const_assert_eq!`]: https://docs.rs/static_assertions/1.0.0/static_assertions/macro.const_assert_eq.html
|
[`assert_trait_super_all!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_trait_super_all.html
|
||||||
[`const_assert_ne!`]: https://docs.rs/static_assertions/1.0.0/static_assertions/macro.const_assert_ne.html
|
[`assert_type_eq_all!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_type_eq_all.html
|
||||||
|
[`assert_type_ne_all!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert_type_ne_all.html
|
||||||
|
[`const_assert!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.const_assert.html
|
||||||
|
[`const_assert_eq!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.const_assert_eq.html
|
||||||
|
[`const_assert_ne!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.const_assert_ne.html
|
||||||
|
|||||||
+2
-2
@@ -26,7 +26,7 @@
|
|||||||
//!
|
//!
|
||||||
//! ```toml
|
//! ```toml
|
||||||
//! [dependencies]
|
//! [dependencies]
|
||||||
//! static_assertions = "1.0.0"
|
//! static_assertions = "1.1.0"
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! and this to your crate root (`main.rs` or `lib.rs`):
|
//! and this to your crate root (`main.rs` or `lib.rs`):
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
//! [compile-time]: https://en.wikipedia.org/wiki/Compile_time
|
//! [compile-time]: https://en.wikipedia.org/wiki/Compile_time
|
||||||
//! [`Cargo.toml`]: https://doc.rust-lang.org/cargo/reference/manifest.html
|
//! [`Cargo.toml`]: https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
#![doc(html_root_url = "https://docs.rs/static_assertions/1.0.0")]
|
#![doc(html_root_url = "https://docs.rs/static_assertions/1.1.0")]
|
||||||
#![doc(html_logo_url = "https://raw.githubusercontent.com/nvzqz/static-assertions-rs/assets/Icon.png")]
|
#![doc(html_logo_url = "https://raw.githubusercontent.com/nvzqz/static-assertions-rs/assets/Icon.png")]
|
||||||
|
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|||||||
Reference in New Issue
Block a user