| 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 = "icu_collections" |
| 7 | description = "Collection of API for use in ICU libraries." |
| 8 | |
| 9 | authors.workspace = true |
| 10 | categories.workspace = true |
| 11 | edition.workspace = true |
| 12 | homepage.workspace = true |
| 13 | include.workspace = true |
| 14 | license.workspace = true |
| 15 | repository.workspace = true |
| 16 | rust-version.workspace = true |
| 17 | version.workspace = true |
| 18 | |
| 19 | [package.metadata.docs.rs] |
| 20 | all-features = true |
| 21 | |
| 22 | [dependencies] |
| 23 | displaydoc = { workspace = true } |
| 24 | yoke = { workspace = true, features = ["derive" ] } |
| 25 | zerofrom = { workspace = true, features = ["derive" ] } |
| 26 | zerovec = { workspace = true, features = ["derive" , "yoke" ] } |
| 27 | |
| 28 | serde = { workspace = true, features = ["derive" , "alloc" ], optional = true } |
| 29 | databake = { workspace = true, features = ["derive" ], optional = true } |
| 30 | |
| 31 | [dev-dependencies] |
| 32 | iai = { workspace = true } |
| 33 | icu = { path = "../../components/icu" , default-features = false } |
| 34 | icu_benchmark_macros = { path = "../../tools/benchmark/macros" } |
| 35 | icu_properties = { path = "../../components/properties" } |
| 36 | postcard = { workspace = true, features = ["alloc" ] } |
| 37 | serde = { workspace = true, features = ["derive" ] } |
| 38 | serde_json = { workspace = true } |
| 39 | |
| 40 | toml = { workspace = true } |
| 41 | |
| 42 | [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] |
| 43 | criterion = { workspace = true } |
| 44 | |
| 45 | [features] |
| 46 | std = [] |
| 47 | serde = ["dep:serde" , "zerovec/serde" ] |
| 48 | databake = ["dep:databake" , "zerovec/databake" ] |
| 49 | bench = [] |
| 50 | |
| 51 | [lib] |
| 52 | bench = false # This option is required for Benchmark CI |
| 53 | |
| 54 | [package.metadata.cargo-all-features] |
| 55 | # Bench feature gets tested separately and is only relevant for CI |
| 56 | denylist = ["bench" ] |
| 57 | |
| 58 | [[bench]] |
| 59 | name = "codepointtrie" |
| 60 | harness = false |
| 61 | path = "benches/codepointtrie.rs" |
| 62 | |
| 63 | [[bench]] |
| 64 | name = "iai_cpt" |
| 65 | harness = false |
| 66 | required-features = ["bench" ] |
| 67 | path = "benches/iai_cpt.rs" |
| 68 | |
| 69 | [[bench]] |
| 70 | name = "inv_list" |
| 71 | harness = false |
| 72 | path = "benches/inv_list.rs" |
| 73 | |