#assert #static #testing

no-std static_assertions

Compile-time assertions to ensure that invariants are met

12 releases

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

#13 in Testing

Download history 3179/week @ 2019-02-27 3717/week @ 2019-03-06 4181/week @ 2019-03-13 4117/week @ 2019-03-20 3716/week @ 2019-03-27 4296/week @ 2019-04-03 4705/week @ 2019-04-10 6209/week @ 2019-04-17 7453/week @ 2019-04-24 5785/week @ 2019-05-01 6162/week @ 2019-05-08 6255/week @ 2019-05-15 7296/week @ 2019-05-22 9392/week @ 2019-05-29 9833/week @ 2019-06-05

26,404 downloads per month
Used in 110 crates (22 directly)

MIT/Apache

33KB
302 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.3"

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