[package]
name = "icu_collections"
description = "Collection of API for use in ICU libraries."
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
version.workspace = true
[package.metadata.docs.rs]
all-features = true
[dependencies]
displaydoc = { workspace = true }
yoke = { workspace = true, features = ["derive"] }
zerofrom = { workspace = true, features = ["derive"] }
zerovec = { workspace = true, features = ["derive", "yoke"] }
serde = { workspace = true, features = ["derive", "alloc"], optional = true }
databake = { workspace = true, features = ["derive"], optional = true }
[dev-dependencies]
iai = { workspace = true }
icu = { path = "../../components/icu", default-features = false }
icu_benchmark_macros = { path = "../../tools/benchmark/macros" }
icu_properties = { path = "../../components/properties" }
postcard = { workspace = true, features = ["alloc"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
toml = { workspace = true }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
criterion = { workspace = true }
[features]
std = []
serde = ["dep:serde", "zerovec/serde"]
databake = ["dep:databake", "zerovec/databake"]
bench = []
[lib]
bench = false
[package.metadata.cargo-all-features]
denylist = ["bench"]
[[bench]]
name = "codepointtrie"
harness = false
path = "benches/codepointtrie.rs"
[[bench]]
name = "iai_cpt"
harness = false
required-features = ["bench"]
path = "benches/iai_cpt.rs"
[[bench]]
name = "inv_list"
harness = false
path = "benches/inv_list.rs"