3 releases
0.1.4 | Jan 17, 2024 |
---|---|
0.1.3 | Jan 17, 2024 |
0.1.2 |
|
0.1.1 | Jan 5, 2024 |
#1161 in Rust patterns
Used in 2 crates
6KB
83 lines
Raw CStr
Utilities for working with raw C strings from Rust. This primarily is intended to provide a constant-like C-string at runtime by using a thread local cache. Its usage is extremely niche, and is intended to be used by tsffs and other crates which compile to cdylibs which are loaded by non-rust programs.
lib.rs
:
Raw C String conversion and conversion trait
If you want constant C strings, use c"Hello, World"
as
recently stabilized instead
Dependencies
~135KB