Cargo Features

icu has no features set by default.

[dependencies]
icu = { version = "1.4.0", features = ["std", "serde", "compiled_data", "serde_human", "icu_datetime_experimental", "icu_plurals_experimental", "experimental", "sync", "logging"] }
default

These default features are set whenever icu is added without default-features = false somewhere in the dependency tree.

Enables icu_calendar, icu_casemap, icu_collator, optional icu_compactdecimal, icu_datetime, icu_decimal, optional icu_displaynames, icu_list, icu_locid_transform, icu_normalizer, icu_plurals, icu_properties, optional icu_relativetime, icu_segmenter, and icu_timezone

icu_compactdecimal:

Experimental components

std

Enables std of icu_calendar, icu_casemap, icu_collator, icu_collections, icu_datetime, icu_decimal, optional icu_displaynames, icu_list, icu_locid, icu_locid_transform, icu_normalizer, icu_plurals, icu_properties, optional icu_relativetime, icu_segmenter, icu_timezone, and optional icu_transliterate

icu_transliterate:

currently only usable with the compile feature

serde

Enables serde of icu_calendar, icu_casemap, icu_collator, icu_collections, icu_datetime, icu_decimal, optional icu_displaynames, icu_list, icu_locid, icu_locid_transform, icu_normalizer, icu_plurals, icu_properties, optional icu_relativetime, icu_segmenter, icu_timezone, and optional icu_transliterate

compiled_data

Enables compiled_data of icu_calendar, icu_casemap, icu_collator, optional icu_compactdecimal, icu_datetime, icu_decimal, optional icu_displaynames, icu_list, icu_locid_transform, icu_normalizer, icu_plurals, icu_properties, optional icu_relativetime, icu_segmenter, icu_timezone, and optional icu_transliterate

serde_human

Enables serde_human of icu_list

icu_datetime_experimental experimental?

Enables experimental of icu_datetime

icu_plurals_experimental experimental?

Enables experimental of icu_plurals

experimental = icu_compactdecimal, icu_datetime_experimental, icu_displaynames, icu_plurals_experimental, icu_relativetime, icu_transliterate
sync

Enables sync of icu_provider

For docs links and features

logging

Enables logging of icu_provider

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

icu_compactdecimal experimental?
icu_displaynames experimental?
icu_relativetime experimental?
icu_transliterate experimental?