constant-cstr 0.1.1

Create const instances of CStr at compile time
Documentation
1
2
3
4
5
6
7
8
9
10
# constant-cstr
[<img alt="crates.io" src="https://img.shields.io/crates/v/constant-cstr">](https://crates.io/crates/constant-cstr)
[<img alt="docs.rs" src="https://img.shields.io/docsrs/constant-cstr">](https://docs.rs/constant-cstr)
### Create const instances of CStr at compile time

`constant-cstr` exists to enable the safe creation of
[`CStr`](https://doc.rust-lang.org/stable/core/ffi/struct.CStr.html) instances
at compile time, enabling safer and more efficient FFI. Its only exported
macro, `cstr`, statically checks its input for the presence of null bytes,
avoiding the penalty of runtime verification.