| 1 |
# This file is part of ICU4X. For terms of use, please see the file |
| 2 |
# called LICENSE at the top level of the ICU4X source tree |
| 3 |
# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). |
| 4 |
|
| 5 |
[package] |
| 6 |
name = "zerotrie" |
| 7 |
description = "A data structure that efficiently maps strings to integers" |
| 8 |
version = "0.2.3" |
| 9 |
|
| 10 |
authors.workspace = true |
| 11 |
categories.workspace = true |
| 12 |
edition.workspace = true |
| 13 |
homepage.workspace = true |
| 14 |
include.workspace = true |
| 15 |
license.workspace = true |
| 16 |
repository.workspace = true |
| 17 |
rust-version = "1.82" |
| 18 |
|
| 19 |
[package.metadata.docs.rs] |
| 20 |
all-features = true |
| 21 |
|
| 22 |
[dependencies] |
| 23 |
databake = { workspace = true, features = ["derive"], optional = true } |
| 24 |
displaydoc = { workspace = true } |
| 25 |
litemap = { workspace = true, features = ["alloc"], optional = true } |
| 26 |
serde_core = { workspace = true, optional = true } |
| 27 |
yoke = { workspace = true, features = ["derive"], optional = true } |
| 28 |
zerofrom = { workspace = true, optional = true } |
| 29 |
zerovec = { workspace = true, optional = true } |
| 30 |
|
| 31 |
[lib] |
| 32 |
bench = false # This option is required for Benchmark CI |
| 33 |
|
| 34 |
[features] |
| 35 |
default = [] |
| 36 |
alloc = [] |
| 37 |
databake = ["dep:databake", "zerovec?/databake"] |
| 38 |
litemap = ["dep:litemap", "alloc"] |
| 39 |
serde = ["dep:serde_core", "dep:litemap", "alloc", "litemap/serde", "zerovec?/serde"] |
| 40 |
yoke = ["dep:yoke"] |
| 41 |
zerofrom = ["dep:zerofrom"] |
| 42 |
|
| 43 |
[[bench]] |
| 44 |
name = "overview" |
| 45 |
harness = false |
| 46 |
required-features = ["alloc", "litemap"] |
| 47 |
|
| 48 |
[[test]] |
| 49 |
name = "asciitrie_test" |
| 50 |
required-features = ["alloc", "litemap"] |
| 51 |
|
| 52 |
[[test]] |
| 53 |
name = "builder_test" |
| 54 |
required-features = ["alloc", "litemap"] |
| 55 |
|
| 56 |
[[test]] |
| 57 |
name = "locale_aux_test" |
| 58 |
required-features = ["alloc", "litemap"] |