| 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_normalizer" |
| 7 | description = "API for normalizing text into Unicode Normalization Forms" |
| 8 | |
| 9 | authors.workspace = true |
| 10 | categories.workspace = true |
| 11 | edition.workspace = true |
| 12 | homepage.workspace = true |
| 13 | include.workspace = true |
| 14 | repository.workspace = true |
| 15 | rust-version.workspace = true |
| 16 | version.workspace = true |
| 17 | license.workspace = true |
| 18 | |
| 19 | [package.metadata.docs.rs] |
| 20 | all-features = true |
| 21 | |
| 22 | [dependencies] |
| 23 | displaydoc = { workspace = true } |
| 24 | icu_collections = { workspace = true } |
| 25 | icu_properties = { workspace = true } |
| 26 | icu_provider = { workspace = true, features = ["macros" ] } |
| 27 | smallvec = { workspace = true } |
| 28 | utf16_iter = { workspace = true } |
| 29 | utf8_iter = { workspace = true } |
| 30 | write16 = { workspace = true, features = ["alloc" ] } |
| 31 | zerovec = { workspace = true } |
| 32 | |
| 33 | databake = { workspace = true, features = ["derive" ], optional = true } |
| 34 | serde = { workspace = true, features = ["derive" , "alloc" ], optional = true } |
| 35 | |
| 36 | icu_normalizer_data = { workspace = true, optional = true } |
| 37 | |
| 38 | [dev-dependencies] |
| 39 | arraystring = { workspace = true } |
| 40 | arrayvec = { workspace = true } |
| 41 | atoi = { workspace = true } |
| 42 | detone = { workspace = true } |
| 43 | icu = { path = "../../components/icu" , default-features = false } |
| 44 | write16 = { workspace = true, features = ["arrayvec" ] } |
| 45 | |
| 46 | [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] |
| 47 | criterion = { workspace = true } |
| 48 | |
| 49 | [features] |
| 50 | default = ["compiled_data" ] |
| 51 | std = ["icu_collections/std" , "icu_properties/std" , "icu_provider/std" ] |
| 52 | serde = ["dep:serde" , "icu_collections/serde" , "zerovec/serde" , "icu_properties/serde" ] |
| 53 | datagen = ["serde" , "dep:databake" , "icu_collections/databake" , "zerovec/databake" , "icu_properties/datagen" ] |
| 54 | experimental = [] |
| 55 | compiled_data = ["dep:icu_normalizer_data" , "icu_properties/compiled_data" ] |
| 56 | |
| 57 | [[bench]] |
| 58 | name = "bench" |
| 59 | harness = false |
| 60 | |