constant-cstr 0.1.1

Create const instances of CStr at compile time
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 5.59 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 271.69 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Keating950/constant-cstr
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Keating950

constant-cstr

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.