#const

macro constant-cstr

Create const instances of CStr at compile time

2 releases

0.1.1 Jul 27, 2022
0.1.0 Jul 26, 2022

#173 in #const

MIT/Apache

4KB

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.


lib.rs:

constant-cstr exists to enable the safe creation of CStr instances at compile time, enabling safer and more efficient FFI.

Dependencies

~1.5MB
~37K SLoC