Registry / utility / unicode-bom

unicode-bom

JSON →
library2.0.3rscratesunverified

Unicode byte-order mark detection for files and byte arrays.

# Cargo.toml [dependencies] unicode-bom = "2.0.3"
INSTALL
IMPORT
SIG · UNICODE-BOM
U
unicode-bom
utilityrustv2.0.3
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.

Bom
use unicode_bom::Bom;

Detects BOM from a byte slice.

use unicode_bom::Bom; fn main() { let bytes = b"\xEF\xBB\xBFhello"; let bom = Bom::from(bytes); println!("BOM detected: {:?}", bom); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
unicode-bom — cargo add unicode-bom · libregistry