Cargo Features

[dependencies]
icu_calendar = { version = "2.1.1", default-features = false, features = ["alloc", "ixdtf", "logging", "serde", "datagen", "compiled_data", "unstable"] }
default = compiled_data, ixdtf

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

alloc datagen?

Enables alloc of icu_locale_core, optional serde, and tinystr

serde:

Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.

ixdtf default

Enables ixdtf

logging

Enables logging of calendrical_calculations

serde datagen?

Enables serde, serde of tinystr and zerovec and serde of icu_provider

icu_provider:

Enable BufferProvider and other deserialization infrastructure

datagen = alloc, serde

Enables databake, databake of tinystr and zerovec and export of icu_provider

icu_provider:

Dependencies for running data generation

Affects provider::MARKERS

compiled_data default

Enables icu_calendar_data, compiled_data of icu_locale and baked of icu_provider

icu_provider:

Dependencies for baked provider scaffolding

Affects provider::Baked

unstable

Affects calendar::Calendar.from_fields, calendar::Calendar.add, calendar::Calendar.until