cstr8 0.1.4

string types that are both valid UTF-8 and nul-terminated
Documentation
  • Coverage
  • 100%
    11 out of 11 items documented2 out of 2 items with examples
  • Size
  • Source code size: 50.01 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 6.37 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • CAD97/cstr8
    3 1 3
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CAD97

Guaranteed valid nul-terminated UTF-8 C strings.

Latest version Documentation License MSRV


If there's some functionality you need which std's str or CStr provide but CStr8 doesn't, or similarly with CString and CString8, please open an issue; lack of feature parity is considered a bug.

The name is derived from analogy with C++'s std::char8_t and std::u8string.

The minimum supported version of Rust will always be at least three months old (stable - 2). Actual updates to the MSRV are expected to be fairly sporadic, but will happen without ceremony as soon as they are desired for any reason.