Registry / utility / cstr-core

cstr-core

JSON →
library0.2.6rscratesunverified

Provides CStr and CString implementations for no_std environments, enabling C string handling without the standard library.

# Cargo.toml [dependencies] cstr_core = "0.2.6"
INSTALL
IMPORT
SIG · CSTR-CORE
C
cstr-core
utilityrustv0.2.6
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_core::CStr;

Creates a CStr from a byte slice with null terminator.

use cstr_core::CStr; let c_str = CStr::from_bytes_with_nul(b"hello\0").unwrap(); println!("C string: {:?}", c_str);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
cstr-core — cargo add cstr-core · libregistry