Registry / utility / os-str-bytes

os-str-bytes

JSON →
library7.2.0rscratesunverified

Lossless functionality for platform-native strings.

# Cargo.toml [dependencies] os_str_bytes = "7.2.0"
INSTALL
IMPORT
SIG · OS-STR-BYTES
O
os-str-bytes
utilityrustv7.2.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.

OsStrBytes
use os_str_bytes::OsStrBytes;

Convert an OsStr to bytes losslessly.

use os_str_bytes::OsStrBytes; use std::ffi::OsStr; fn main() { let os_str = OsStr::new("hello"); let bytes = os_str.to_bytes(); println!("{:?}", bytes); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
7.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
os-str-bytes — cargo add os-str-bytes · libregistry