Debian Codegraph @

debian/missing-sources/icu_normalizer/Cargo.toml.orig

raw
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 icu_collections = { workspace = true }
24 icu_properties = { workspace = true, optional = true }
25 icu_provider = { workspace = true }
26 smallvec = { workspace = true } # alloc
27 utf16_iter = { workspace = true, optional = true }
28 utf8_iter = { workspace = true, optional = true }
29 write16 = { workspace = true, features = ["alloc"], optional = true }
30 zerovec = { workspace = true }
31
32 databake = { workspace = true, features = ["derive"], optional = true }
33 serde = { workspace = true, features = ["derive", "alloc"], optional = true }
34
35 icu_normalizer_data = { workspace = true, optional = true }
36
37 [dev-dependencies]
38 arraystring = { workspace = true }
39 arrayvec = { workspace = true }
40 atoi = { workspace = true }
41 detone = { workspace = true }
42 icu = { path = "../../components/icu", default-features = false }
43 write16 = { workspace = true, features = ["arrayvec", "smallvec"] }
44
45 [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
46 criterion = { workspace = true }
47
48 [features]
49 default = ["compiled_data", "utf8_iter", "utf16_iter"]
50 serde = ["dep:serde", "icu_collections/serde", "zerovec/serde", "icu_properties?/serde", "icu_provider/serde"]
51 # n.b. "icu_properties" + "icu_properties?/datagen" is equivalent to "icu_properties/datagen", however
52 # we specify this explicitly since "optional_dep/feature" is a footgun that leads to us often accidentally enabling features
53 datagen = ["serde", "dep:databake", "icu_properties", "icu_collections/databake", "zerovec/databake", "icu_properties?/datagen", "icu_provider/export"]
54 experimental = []
55 compiled_data = ["dep:icu_normalizer_data", "icu_properties?/compiled_data", "icu_provider/baked"]
56 icu_properties = ["dep:icu_properties"]
57 # For dealing with UTF16 strings
58 utf16_iter = ["dep:utf16_iter", "dep:write16"]
59 # For dealing with potentially ill-formed UTF8 strings
60 utf8_iter = ["dep:utf8_iter"]
61
62 # added by accident
63 write16 = []
64
65 [[bench]]
66 name = "bench"
67 harness = false
68 required-features = ["utf16_iter", "utf8_iter"]
69
70 # Lint to avoid complaining about icu4x_unstable_fast_trie_only for now
71 [lints.rust]
72 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(icu4x_unstable_fast_trie_only)'] }