Cargo Features

icu has no features set by default.

[dependencies]
icu = { version = "2.0.0-beta1", features = ["std", "serde", "compiled_data", "datagen", "serde_human", "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, icu_datetime, icu_decimal, optional icu_experimental, icu_list, icu_locale, icu_normalizer, optional icu_pattern, icu_plurals, icu_properties, icu_segmenter, and icu_timezone

std datagen?

Enables std of icu_calendar, icu_casemap, icu_collator, icu_collections, icu_datetime, icu_decimal, optional icu_experimental, icu_list, icu_locale, icu_normalizer, optional icu_pattern, icu_plurals, icu_properties, icu_segmenter, and icu_timezone

serde

Enables serde of icu_calendar, icu_casemap, icu_collator, icu_collections, icu_datetime, icu_decimal, optional icu_experimental, icu_list, icu_locale, icu_normalizer, optional icu_pattern, icu_plurals, icu_properties, icu_segmenter, and icu_timezone

compiled_data

Enables compiled_data of icu_calendar, icu_casemap, icu_collator, icu_datetime, icu_decimal, optional icu_experimental, icu_list, icu_locale, icu_normalizer, icu_plurals, icu_properties, icu_segmenter, and icu_timezone

datagen = std

Enables memchr, datagen of icu_segmenter and icu_timezone and icu_provider_registry

For markers_from_bin

and datagen of icu_calendar, icu_casemap, icu_collator, icu_datetime, icu_decimal, icu_list, icu_locale, icu_normalizer, icu_plurals, icu_properties, and optional icu_experimental

icu_normalizer:

n.b. "icu_properties" + "icu_properties?/datagen" is equivalent to "icu_properties/datagen", however we specify this explicitly since "optional_dep/feature" is a footgun that leads to us often accidentally enabling features

serde_human

Enables serde_human of icu_list

experimental

Enables icu_experimental and icu_pattern, experimental of icu_datetime, experimental of icu_plurals

sync

Enables sync of icu_provider

For docs links and features

logging

Enables logging of icu_datetime and icu_provider