[package]
name = "icu_datetime"
description = "API for formatting date and time to user readable textual representation"
version = "1.5.1"
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]
displaydoc = { workspace = true }
either = { workspace = true }
fixed_decimal = { workspace = true }
icu_calendar = { workspace = true }
icu_decimal = { workspace = true }
icu_locid = { workspace = true }
icu_plurals = { workspace = true }
icu_provider = { workspace = true, features = ["macros", "experimental"] }
icu_timezone = { workspace = true }
smallvec = { workspace = true }
tinystr = { workspace = true, features = ["alloc", "zerovec"] }
writeable = { workspace = true }
zerovec = { workspace = true, features = ["yoke"] }
serde = { workspace = true, features = ["derive", "alloc"], optional = true }
databake = { workspace = true, features = ["derive"], optional = true}
icu_datetime_data = { workspace = true, optional = true }
icu_locid_transform = { workspace = true, optional = true, features = ["compiled_data"] }
litemap = { workspace = true, optional = true }
[dev-dependencies]
icu = { path = "../../components/icu", default-features = false }
icu_benchmark_macros = { path = "../../tools/benchmark/macros" }
icu_provider_adapters = { path = "../../provider/adapters" }
icu_provider_blob = { path = "../../provider/blob" }
litemap = { path = "../../utils/litemap" }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
bincode = { workspace = true }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
criterion = { workspace = true }
[features]
default = ["compiled_data"]
std = [
"icu_calendar/std",
"icu_decimal/std",
"icu_locid/std",
"icu_plurals/std",
"icu_provider/std",
"icu_timezone/std",
]
serde = [
"dep:serde",
"icu_calendar/serde",
"icu_decimal/serde",
"icu_plurals/serde",
"icu_provider/serde",
"icu_timezone/serde",
"litemap?/serde",
"smallvec/serde",
"tinystr/serde",
"zerovec/serde",
]
datagen = [
"dep:databake",
"dep:litemap",
"icu_calendar/datagen",
"icu_provider/datagen",
"icu_timezone/datagen",
"serde",
"std",
]
logging = ["icu_calendar/logging"]
experimental = ["dep:litemap"]
bench = ["serde"]
compiled_data = ["dep:icu_datetime_data", "dep:icu_locid_transform", "icu_calendar/compiled_data", "icu_decimal/compiled_data", "icu_plurals/compiled_data", "icu_timezone/compiled_data"]
[lib]
bench = false
[package.metadata.cargo-all-features]
skip_optional_dependencies = true
denylist = ["bench"]
[[bench]]
name = "datetime"
harness = false
required-features = ["compiled_data"]
[[bench]]
name = "pattern"
harness = false
required-features = ["bench"]
[[test]]
name = "datetime"
required-features = ["compiled_data"]
[[test]]
name = "resolved_components"
required-features = ["experimental", "compiled_data"]
[[test]]
name = "simple_test"
required-features = ["compiled_data"]
[[test]]
name = "skeleton_serialization"
required-features = ["experimental"]
[[example]]
name = "work_log"
required-features = ["compiled_data"]