mirror of
https://gitee.com/openharmony/third_party_rust_static-assertions-rs
synced 2024-11-27 01:20:33 +00:00
[Release] Prepare 0.3.0
This commit is contained in:
parent
e971c477fe
commit
8125bcb504
@ -5,6 +5,8 @@ The format is based on [Keep a Changelog] and this project adheres to
|
||||
[Semantic Versioning].
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [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
|
||||
@ -85,7 +87,8 @@ Initial release
|
||||
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/
|
||||
[Semantic Versioning]: http://semver.org/spec/v2.0.0.html
|
||||
|
||||
[Unreleased]: https://github.com/nvzqz/static-assertions-rs/compare/v0.2.5...HEAD
|
||||
[Unreleased]: https://github.com/nvzqz/static-assertions-rs/compare/v0.3.0...HEAD
|
||||
[0.3.0]: https://github.com/nvzqz/static-assertions-rs/compare/v0.2.5...v0.3.0
|
||||
[0.2.5]: https://github.com/nvzqz/static-assertions-rs/compare/v0.2.4...v0.2.5
|
||||
[0.2.4]: https://github.com/nvzqz/static-assertions-rs/compare/v0.2.3...v0.2.4
|
||||
[0.2.3]: https://github.com/nvzqz/static-assertions-rs/compare/v0.2.2...v0.2.3
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "static_assertions"
|
||||
version = "0.2.5"
|
||||
version = "0.3.0"
|
||||
authors = ["Nikolai Vazquez"]
|
||||
license = "MIT/Apache-2.0"
|
||||
homepage = "https://github.com/nvzqz/static-assertions-rs"
|
||||
|
20
README.md
20
README.md
@ -31,7 +31,7 @@ adding the following to your project's
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
static_assertions = "0.2.5"
|
||||
static_assertions = "0.3.0"
|
||||
```
|
||||
|
||||
and this to your crate root (`main.rs` or `lib.rs`):
|
||||
@ -44,15 +44,15 @@ extern crate static_assertions;
|
||||
## Usage
|
||||
|
||||
This crate exposes the following macros:
|
||||
- [`assert_cfg!`](https://docs.rs/static_assertions/0.2.5/static_assertions/macro.assert_cfg.html)
|
||||
- [`assert_eq_size!`](https://docs.rs/static_assertions/0.2.5/static_assertions/macro.assert_eq_size.html)
|
||||
- [`assert_eq_size_ptr!`](https://docs.rs/static_assertions/0.2.5/static_assertions/macro.assert_eq_size_ptr.html)
|
||||
- [`assert_eq_size_val!`](https://docs.rs/static_assertions/0.2.5/static_assertions/macro.assert_eq_size_val.html)
|
||||
- [`assert_fields!`](https://docs.rs/static_assertions/0.2.5/static_assertions/macro.assert_fields.html)
|
||||
- [`assert_impl!`](https://docs.rs/static_assertions/0.2.5/static_assertions/macro.assert_impl.html)
|
||||
- [`assert_obj_safe!`](https://docs.rs/static_assertions/0.2.5/static_assertions/macro.assert_obj_safe.html)
|
||||
- [`const_assert!`](https://docs.rs/static_assertions/0.2.5/static_assertions/macro.const_assert.html)
|
||||
- [`const_assert_eq!`](https://docs.rs/static_assertions/0.2.5/static_assertions/macro.const_assert_eq.html)
|
||||
- [`assert_cfg!`](https://docs.rs/static_assertions/0.3.0/static_assertions/macro.assert_cfg.html)
|
||||
- [`assert_eq_size!`](https://docs.rs/static_assertions/0.3.0/static_assertions/macro.assert_eq_size.html)
|
||||
- [`assert_eq_size_ptr!`](https://docs.rs/static_assertions/0.3.0/static_assertions/macro.assert_eq_size_ptr.html)
|
||||
- [`assert_eq_size_val!`](https://docs.rs/static_assertions/0.3.0/static_assertions/macro.assert_eq_size_val.html)
|
||||
- [`assert_fields!`](https://docs.rs/static_assertions/0.3.0/static_assertions/macro.assert_fields.html)
|
||||
- [`assert_impl!`](https://docs.rs/static_assertions/0.3.0/static_assertions/macro.assert_impl.html)
|
||||
- [`assert_obj_safe!`](https://docs.rs/static_assertions/0.3.0/static_assertions/macro.assert_obj_safe.html)
|
||||
- [`const_assert!`](https://docs.rs/static_assertions/0.3.0/static_assertions/macro.const_assert.html)
|
||||
- [`const_assert_eq!`](https://docs.rs/static_assertions/0.3.0/static_assertions/macro.const_assert_eq.html)
|
||||
|
||||
### Limitations
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
//!
|
||||
//! ```toml
|
||||
//! [dependencies]
|
||||
//! static_assertions = "0.2.5"
|
||||
//! static_assertions = "0.3.0"
|
||||
//! ```
|
||||
//!
|
||||
//! and this to your crate root (`main.rs` or `lib.rs`):
|
||||
@ -64,7 +64,7 @@
|
||||
//!
|
||||
//! ```toml
|
||||
//! [dependencies.static_assertions]
|
||||
//! version = "0.2.5"
|
||||
//! version = "0.3.0"
|
||||
//! features = ["nightly"]
|
||||
//! ```
|
||||
//!
|
||||
@ -117,7 +117,7 @@
|
||||
//! [compile-time]: https://en.wikipedia.org/wiki/Compile_time
|
||||
//! [`Cargo.toml`]: https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
#![doc(html_root_url = "https://docs.rs/static_assertions/0.2.5")]
|
||||
#![doc(html_root_url = "https://docs.rs/static_assertions/0.3.0")]
|
||||
#![doc(html_logo_url = "https://raw.githubusercontent.com/nvzqz/static-assertions-rs/assets/Icon.png")]
|
||||
|
||||
#![no_std]
|
||||
|
Loading…
Reference in New Issue
Block a user