[package]
name = "icu_calendar"
description = "API for supporting various types of calendars"
version = "1.5.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, features = ["macros"] }
icu_locid = { workspace = 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_locid_transform = { workspace = true, optional = true, features = ["compiled_data"] }
[dev-dependencies]
icu = { path = "../../components/icu", default-features = false }
icu_benchmark_macros = { path = "../../tools/benchmark/macros" }
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"]
logging = ["calendrical_calculations/logging"]
std = ["icu_provider/std", "icu_locid/std", "calendrical_calculations/std"]
serde = ["dep:serde", "zerovec/serde", "tinystr/serde", "icu_provider/serde"]
datagen = ["serde", "dep:databake", "zerovec/databake", "tinystr/databake"]
bench = []
compiled_data = ["dep:icu_calendar_data", "dep:icu_locid_transform"]
[package.metadata.cargo-all-features]
denylist = ["bench"]
[[bench]]
name = "date"
harness = false
[[bench]]
name = "datetime"
harness = false
[[bench]]
name = "iso"
harness = false
[[bench]]
name = "convert"
harness = false
[[example]]
name = "iso_date_manipulations"
[[example]]
name = "iso_datetime_manipulations"