#assert #static #testing

no-std static_assertions

Compile-time assertions to ensure that invariants are met

10 releases

0.3.1 Nov 15, 2018
0.3.0 Nov 14, 2018
0.2.5 Dec 12, 2017
0.2.3 Aug 24, 2017
0.1.1 Aug 13, 2017

#27 in Rust patterns

Download history 1394/week @ 2018-12-20 1449/week @ 2018-12-27 2043/week @ 2019-01-03 2476/week @ 2019-01-10 1913/week @ 2019-01-17 2085/week @ 2019-01-24 2330/week @ 2019-01-31 2884/week @ 2019-02-07 2417/week @ 2019-02-14 3009/week @ 2019-02-21 3300/week @ 2019-02-28 3856/week @ 2019-03-07 4140/week @ 2019-03-14 3994/week @ 2019-03-21 4000/week @ 2019-03-28

8,127 downloads per month
Used in 45 crates (17 directly)

MIT/Apache

26KB
212 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.1"

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