# This file is part of ICU4X. For terms of use, please see the file # called LICENSE at the top level of the ICU4X source tree # (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). [package] name = "icu_calendar" description = "Date APIs for Gregorian and non-Gregorian calendars" version = "2.0.2" authors.workspace = true categories.workspace = true edition.workspace = true homepage.workspace = true include.workspace = true license.workspace = true repository.workspace = true rust-version.workspace = true [package.metadata.docs.rs] all-features = true [dependencies] calendrical_calculations = { workspace = true } displaydoc = { workspace = true } icu_provider = { workspace = true } icu_locale_core = { workspace = true, features = ["alloc"]} ixdtf = { workspace = true, optional = true } tinystr = { workspace = true, features = ["alloc", "zerovec"] } zerovec = { workspace = true, features = ["derive"] } writeable = { workspace = true } databake = { workspace = true, features = ["derive"], optional = true } serde = { workspace = true, features = ["derive", "alloc"], optional = true } icu_calendar_data = { workspace = true, optional = true } icu_locale = { workspace = true, optional = true } [dev-dependencies] icu_provider = { path = "../../provider/core", features = ["logging"] } icu = { path = "../../components/icu", default-features = false } serde = { workspace = true, features = ["derive", "alloc"] } serde_json = { workspace = true } simple_logger = { workspace = true } [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] criterion = { workspace = true } [features] default = ["compiled_data", "ixdtf"] ixdtf = ["dep:ixdtf"] logging = ["calendrical_calculations/logging"] serde = ["dep:serde", "zerovec/serde", "tinystr/serde", "icu_provider/serde"] datagen = ["serde", "dep:databake", "zerovec/databake", "tinystr/databake", "alloc", "icu_provider/export"] compiled_data = ["dep:icu_calendar_data", "dep:icu_locale", "icu_locale?/compiled_data", "icu_provider/baked"] alloc = [] [[bench]] name = "date" harness = false [[bench]] name = "convert" harness = false