Revision control
Copy as Markdown
Other Tools
# 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
[package]
name = "zerotrie"
description = "A data structure that efficiently maps strings to integers"
version = "0.2.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]
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_locale_core = { workspace = true, features = ["alloc"] }
writeable = { path = "../../utils/writeable" }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
criterion = { workspace = true }
[lib]
bench = false # This option is required for Benchmark CI
[features]
default = []
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"]