Registry / utility / cstr-macro

cstr-macro

JSON →
library0.1.0rscratesunverified

Macros for creating CStrings without heap allocations.

# Cargo.toml [dependencies] cstr-macro = "0.1.0"
INSTALL
IMPORT
SIG · CSTR-MACRO
C
cstr-macro
utilityrustv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cstr
use cstr_macro::cstr;

Creates a CString at compile time using the cstr! macro.

use cstr_macro::cstr; fn main() { let s = cstr!("hello"); println!("{:?}", s); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
cstr-macro — cargo add cstr-macro · libregistry