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