3 stable releases

2.0.0 Dec 2, 2021
1.0.1 Apr 22, 2020
1.0.0 Apr 21, 2020

#406 in No standard library

Download history 2/week @ 2025-01-28 1/week @ 2025-02-04 2/week @ 2025-02-18 11/week @ 2025-02-25 4/week @ 2025-03-04 99/week @ 2025-03-18 97/week @ 2025-03-25

206 downloads per month
Used in 2 crates

BSL-1.0 license

4KB

static-assert

Crates.io Documentation

Simple static_assert macro for compile time assertions.

Uses const_panic within const variable to produce compile error hence only usable in const context

Requirements

  • Rust 1.57

No runtime deps