Registry / utility / widestring

widestring

JSON →
library1.2.1rscratesunverified

A wide string library for converting to and from UTF-16 and UTF-32 strings, often used in Windows API or FFI.

# Cargo.toml [dependencies] widestring = "1.2.1"
INSTALL
IMPORT
SIG · WIDESTRING
W
widestring
utilityrustv1.2.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.

U16String
✓ use widestring::U16String;

Create a UTF-16 wide string from a Rust string.

use widestring::U16String; let wide = U16String::from_str("hello"); println!("{:?}", wide.as_slice());
Debug
Known issues
gotchaMay produce malformed encoding if input is not valid UTF-16.
fix
Use `U16CString` for null-terminated strings or validate input.
affects: >=1.0.0
Upgrade
Version history
1.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
20
Resources
widestring — cargo add widestring · libregistry