Registry / utility / icu-locid

icu-locid

JSON →
library2.0.0rscratesunverified

Deprecated crate for locale identifiers; use icu_locid from the icu4x project instead.

# Cargo.toml [dependencies] icu_locid = "2.0.0"
INSTALL
IMPORT
SIG · ICU-LOCID
I
icu-locid
utilityrustv2.0.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.

Locale
use icu_locid::Locale;

Parses a locale identifier (deprecated).

use icu_locid::Locale; let loc: Locale = "en-US".parse().unwrap(); println!("Language: {}", loc.language);
Debug
Known issues
breakingThis crate is deprecated; use icu_locid from the icu4x project.
fix
Replace with icu_locid from the icu4x crate.
affects: >=2.0.0
Upgrade
Version history
2.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
icu-locid — cargo add icu-locid · libregistry