Registry / utility / bstr
library1.12.1rscratesunverified

A string type that is not required to be valid UTF-8.

# Cargo.toml [dependencies] bstr = "1.12.1"
INSTALL
IMPORT
SIG · BSTR
B
bstr
utilityrustv1.12.1
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.

BString
use bstr::BString;

Creates a BString from arbitrary bytes, including non-UTF-8 data.

use bstr::BString; fn main() { let bytes = b"hello\xFFworld"; let bstr = BString::new(bytes.to_vec()); println!("BString: {:?}", bstr); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.12.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
bstr — cargo add bstr · libregistry