Cargo Features

[dependencies]
icu_datetime = { version = "1.5.1", default-features = false, features = ["std", "serde", "datagen", "logging", "experimental", "compiled_data", "bench"] }
default = compiled_data

The compiled_data feature is set by default whenever icu_datetime is added without default-features = false somewhere in the dependency tree.

std datagen?

Enables std of icu_calendar, icu_decimal, icu_locid, icu_plurals, icu_provider, and icu_timezone

serde bench? datagen?

Enables serde, serde of smallvec, tinystr, and zerovec and serde of icu_calendar, icu_decimal, icu_plurals, icu_provider, and icu_timezone

icu_provider:

Enable BufferProvider and other deserialization infrastructure

and serde of optional litemap

Experimental

datagen = serde, std

Enables databake, litemap and datagen of icu_calendar, icu_provider, and icu_timezone

icu_provider:

Dependencies for running data generation

Affects provider::KEYS, calendar::NeverCalendar, calendar::CalMarkers, calendar::FullDataCalMarkers, calendar::NoDataCalMarkers, icu_datetime::neo_skeleton, icu_datetime::skeleton, options::components, options::preferences, helpers::maybe_replace, provider::neo

logging

Enables logging of icu_calendar

experimental

Enables litemap

Affects format::neo, icu_datetime::neo, icu_datetime::neo_marker, icu_datetime::neo_pattern, calendar::NeverCalendar, calendar::CalMarkers, calendar::FullDataCalMarkers, calendar::NoDataCalMarkers, icu_datetime::neo_skeleton, icu_datetime::skeleton, options::components, options::preferences, helpers::maybe_replace, provider::neo

compiled_data default

Enables icu_datetime_data, icu_locid_transform, compiled_data of icu_calendar, compiled_data of icu_decimal, compiled_data of icu_plurals and icu_timezone

Affects provider::Baked

bench = serde