https://github.com/cad97/cstr8
string types that are both valid UTF-8 and nul-terminated
https://github.com/cad97/cstr8
Last synced: over 1 year ago
JSON representation
string types that are both valid UTF-8 and nul-terminated
- Host: GitHub
- URL: https://github.com/cad97/cstr8
- Owner: CAD97
- License: apache-2.0
- Created: 2022-06-08T18:43:15.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T00:59:57.000Z (about 2 years ago)
- Last Synced: 2024-05-02T02:07:04.378Z (about 2 years ago)
- Language: Rust
- Size: 61.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
Guaranteed valid nul-terminated UTF-8 C strings.
[](https://crates.io/crates/cstr8)
[](https://docs.rs/cstr8)


___
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.