#assert #static #testing

no-std static_assertions

Compile-time assertions to ensure that invariants are met

13 releases

0.3.4 Aug 12, 2019
0.3.3 Jun 12, 2019
0.3.2 May 14, 2019
0.3.1 Nov 15, 2018
0.1.1 Aug 13, 2017

#11 in Testing

Download history 5784/week @ 2019-04-29 6452/week @ 2019-05-06 5607/week @ 2019-05-13 6928/week @ 2019-05-20 8140/week @ 2019-05-27 10093/week @ 2019-06-03 12721/week @ 2019-06-10 10899/week @ 2019-06-17 11500/week @ 2019-06-24 9860/week @ 2019-07-01 10151/week @ 2019-07-08 10317/week @ 2019-07-15 10400/week @ 2019-07-22 12529/week @ 2019-07-29 12042/week @ 2019-08-05

43,430 downloads per month
Used in 140 crates (27 directly)

MIT/Apache

41KB
412 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.4"

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