Skip to content
Rust compile-time assertions to ensure that invariants are met and your API remains stable
Rust Shell
Branch: master
Clone or download
nvzqz Protect `assert_impl_any!` against false positives
An attacker could have a blanket-impl'd trait in scope that has a
`_static_assertions_impl_any` method which interferes with that method
of `Wrapper`. This was pointed out by @Lej77.

See #19.
Latest commit 421b6ae Oct 18, 2019

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 = "1.0.0"

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

#[macro_use]
extern crate static_assertions;

Usage

This crate exposes the following macros:

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.

You can’t perform that action at this time.