[package]
name = "zerotrie"
description = "A data structure that efficiently maps strings to integers"
version = "0.1.3"
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
[package.metadata.cargo-all-features]
denylist = ["bench"]
[dependencies]
databake = { workspace = true, features = ["derive"], optional = true }
displaydoc = { workspace = true }
litemap = { workspace = true, features = ["alloc"], optional = true }
serde = { workspace = true, optional = true }
yoke = { workspace = true, features = ["derive"], optional = true }
zerofrom = { workspace = true, optional = true }
zerovec = { workspace = true, optional = true }
[dev-dependencies]
bincode = { workspace = true }
icu_benchmark_macros = { path = "../../tools/benchmark/macros" }
litemap = { path = "../../utils/litemap" }
postcard = { workspace = true, features = ["alloc"] }
rand = { workspace = true }
rand_pcg = { workspace = true }
rmp-serde = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
zerovec = { path = "../../utils/zerovec", features = ["serde", "hashmap"] }
icu_locid = { path = "../../components/locid" }
writeable = { path = "../../utils/writeable" }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
criterion = { workspace = true }
[lib]
bench = false
[features]
default = []
bench = ["litemap"]
alloc = []
databake = ["dep:databake", "zerovec?/databake"]
litemap = ["dep:litemap", "alloc"]
serde = ["dep:serde", "dep:litemap", "alloc", "litemap/serde", "zerovec?/serde"]
yoke = ["dep:yoke"]
zerofrom = ["dep:zerofrom"]
[[bench]]
name = "overview"
harness = false
required-features = ["alloc", "litemap"]
[[test]]
name = "asciitrie_test"
required-features = ["alloc", "litemap"]
[[test]]
name = "builder_test"
required-features = ["alloc", "litemap"]
[[test]]
name = "locale_aux_test"
required-features = ["alloc", "litemap"]