https://github.com/doumanash/static-assert
Simple Rust macro to assert constant expressions
https://github.com/doumanash/static-assert
compile-time rust static-assertions
Last synced: 4 months ago
JSON representation
Simple Rust macro to assert constant expressions
- Host: GitHub
- URL: https://github.com/doumanash/static-assert
- Owner: DoumanAsh
- License: bsl-1.0
- Created: 2020-04-21T20:09:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-02T16:14:54.000Z (about 4 years ago)
- Last Synced: 2024-05-02T00:10:17.294Z (almost 2 years ago)
- Topics: compile-time, rust, static-assertions
- Language: Rust
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# static-assert

[](https://crates.io/crates/sa)
[](https://docs.rs/crate/sa/)
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