#assert #static #testing

no-std static_assertions

Compile-time assertions to ensure that invariants are met

11 releases

0.3.2 May 14, 2019
0.3.1 Nov 15, 2018
0.2.5 Dec 12, 2017
0.2.3 Aug 24, 2017
0.1.1 Aug 13, 2017

#13 in Testing

Download history 2161/week @ 2019-01-29 2530/week @ 2019-02-05 2582/week @ 2019-02-12 3043/week @ 2019-02-19 3274/week @ 2019-02-26 3338/week @ 2019-03-05 4170/week @ 2019-03-12 4334/week @ 2019-03-19 3677/week @ 2019-03-26 3963/week @ 2019-04-02 4712/week @ 2019-04-09 5997/week @ 2019-04-16 7716/week @ 2019-04-23 5708/week @ 2019-04-30 6184/week @ 2019-05-07

19,523 downloads per month
Used in 68 crates (20 directly)

MIT/Apache

32KB
295 lines

Banner

Rust compile-time assertions to ensure that invariants are met.

Documentation

Installation

This crate is available on crates.io and can be used by adding the following to your project's Cargo.toml:

[dependencies]
static_assertions = "0.3.2"

and this to your crate root (main.rs or lib.rs):

#[macro_use]
extern crate static_assertions;

Usage

This crate exposes the following macros:

Limitations

See issue #1 to read up on current limitations of this crate and how to currently overcome them.

Changes

See CHANGELOG.md for a complete list of what has changed from one version to another.

License

This project is released under either:

at your choosing.

No runtime deps