constant-cstr

crates.io docs.rs

Create const instances of CStr at compile time

constant-cstr exists to enable the safe creation of CStr 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.