tree: 7692d903383f1b48d97d2f668ab7f59fff8f3049 [path history] [tgz]
  1. src/
  2. .cargo-checksum.json
  3. Cargo.toml
  4. CHANGELOG.md
  5. LICENSE-APACHE
  6. LICENSE-MIT
  7. README.md
third_party/rust_crates/vendor/static_assertions/README.md

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.