Registry / utility / unicode-width

unicode-width

JSON →
library0.2.2rscratesunverified

Determine displayed width of char and str types according to Unicode Standard Annex #11 rules.

utility
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.

use unicode_width::UnicodeWidthStr;

Calculate the display width of a string.

use unicode_width::UnicodeWidthStr; fn main() { let width = "Hello".width(); println!("Width: {}", width); }
Debug
Known footguns

No known footguns recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
11 hits · last 30 days
gptbot
3
claudebot
3
ahrefsbot
1
Resources