Crates.io | constant-cstr |
lib.rs | constant-cstr |
version | 0.1.1 |
source | src |
created_at | 2022-07-26 23:27:17.436847 |
updated_at | 2022-07-27 16:20:57.084011 |
description | Create const instances of CStr at compile time |
homepage | |
repository | https://github.com/Keating950/constant-cstr |
max_upload_size | |
id | 633556 |
size | 4,989 |
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.