Debian Codegraph @

debian/rust-vendor/icu_normalizer/Cargo.toml

raw
1 # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2 #
3 # When uploading crates to the registry Cargo will automatically
4 # "normalize" Cargo.toml files for maximal compatibility
5 # with all versions of Cargo and also rewrite `path` dependencies
6 # to registry (e.g., crates.io) dependencies.
7 #
8 # If you are reading this file be aware that the original Cargo.toml
9 # will likely look very different (and much more reasonable).
10 # See Cargo.toml.orig for the original contents.
11
12 [package]
13 edition = "2024"
14 rust-version = "1.88"
15 name = "icu_normalizer"
16 version = "2.3.0"
17 authors = ["The ICU4X Project Developers"]
18 build = false
19 include = [
20 "data/**/*",
21 "src/**/*",
22 "examples/**/*",
23 "benches/**/*",
24 "tests/**/*",
25 "Cargo.toml",
26 "LICENSE",
27 "README.md",
28 "build.rs",
29 ]
30 autolib = false
31 autobins = false
32 autoexamples = false
33 autotests = false
34 autobenches = false
35 description = "API for normalizing text into Unicode Normalization Forms"
36 homepage = "https://icu4x.unicode.org"
37 readme = "README.md"
38 keywords = [
39 "unicode",
40 "normalization",
41 "text-processing",
42 ]
43 categories = [
44 "internationalization",
45 "localization",
46 "no-std",
47 "embedded",
48 ]
49 license = "Unicode-3.0"
50 repository = "https://github.com/unicode-org/icu4x"
51 resolver = "2"
52
53 [package.metadata.docs.rs]
54 all-features = true
55
56 [package.metadata.cargo-all-features]
57 max_combination_size = 3
58
59 [features]
60 compiled_data = [
61 "dep:icu_normalizer_data",
62 "icu_properties?/compiled_data",
63 "icu_provider/baked",
64 ]
65 datagen = [
66 "serde",
67 "dep:databake",
68 "icu_properties",
69 "icu_collections/databake",
70 "zerovec/databake",
71 "icu_properties?/datagen",
72 "icu_provider/export",
73 ]
74 default = [
75 "compiled_data",
76 "utf8_iter",
77 "utf16_iter",
78 ]
79 harfbuzz_traits = ["dep:harfbuzz-traits"]
80 icu_properties = ["dep:icu_properties"]
81 serde = [
82 "dep:serde",
83 "icu_collections/serde",
84 "zerovec/serde",
85 "icu_properties?/serde",
86 "icu_provider/serde",
87 ]
88 utf16_iter = [
89 "dep:utf16_iter",
90 "dep:write16",
91 ]
92 utf8_iter = ["dep:utf8_iter"]
93 write16 = []
94
95 [lib]
96 name = "icu_normalizer"
97 path = "src/lib.rs"
98
99 [[test]]
100 name = "tests"
101 path = "tests/tests.rs"
102
103 [[bench]]
104 name = "bench"
105 path = "benches/bench.rs"
106 harness = false
107 required-features = [
108 "utf16_iter",
109 "utf8_iter",
110 ]
111
112 [[bench]]
113 name = "canonical_composition"
114 path = "benches/canonical_composition.rs"
115
116 [[bench]]
117 name = "canonical_decomposition"
118 path = "benches/canonical_decomposition.rs"
119
120 [[bench]]
121 name = "composing_normalizer_nfc"
122 path = "benches/composing_normalizer_nfc.rs"
123
124 [[bench]]
125 name = "composing_normalizer_nfkc"
126 path = "benches/composing_normalizer_nfkc.rs"
127
128 [[bench]]
129 name = "decomposing_normalizer_nfd"
130 path = "benches/decomposing_normalizer_nfd.rs"
131
132 [[bench]]
133 name = "decomposing_normalizer_nfkd"
134 path = "benches/decomposing_normalizer_nfkd.rs"
135
136 [[bench]]
137 name = "utf16_throughput"
138 path = "benches/utf16_throughput.rs"
139
140 [dependencies.databake]
141 version = "0.2.0"
142 features = ["derive"]
143 optional = true
144 default-features = false
145
146 [dependencies.harfbuzz-traits]
147 version = "0.6.0"
148 optional = true
149 default-features = false
150
151 [dependencies.icu_collections]
152 version = "~2.3.0"
153 default-features = false
154
155 [dependencies.icu_normalizer_data]
156 version = "~2.3.0"
157 optional = true
158 default-features = false
159
160 [dependencies.icu_properties]
161 version = "~2.3.0"
162 optional = true
163 default-features = false
164
165 [dependencies.icu_provider]
166 version = "2.3.0"
167 default-features = false
168
169 [dependencies.serde]
170 version = "1.0.220"
171 features = [
172 "derive",
173 "alloc",
174 ]
175 optional = true
176 default-features = false
177
178 [dependencies.smallvec]
179 version = "1.10.0"
180 default-features = false
181
182 [dependencies.utf16_iter]
183 version = "1.0.2"
184 optional = true
185 default-features = false
186
187 [dependencies.utf8_iter]
188 version = "1.0.2"
189 optional = true
190 default-features = false
191
192 [dependencies.write16]
193 version = "1.0.0"
194 features = ["alloc"]
195 optional = true
196 default-features = false
197
198 [dependencies.zerovec]
199 version = "0.11.7"
200 default-features = false
201
202 [dev-dependencies.atoi]
203 version = "2.0.0"
204
205 [dev-dependencies.detone]
206 version = "1.0.0"
207
208 [dev-dependencies.write16]
209 version = "1.0.0"
210 features = [
211 "arrayvec",
212 "smallvec",
213 ]
214 default-features = false
215
216 [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
217 version = "0.5.0"
218
219 [lints.clippy]
220 alloc_instead_of_core = "warn"
221 bool_assert_comparison = "allow"
222 branches_sharing_code = "warn"
223 collection_is_never_read = "warn"
224 crosspointer_transmute = "warn"
225 dbg_macro = "warn"
226 debug_assert_with_mut_call = "warn"
227 doc_markdown = "warn"
228 exhaustive_enums = "deny"
229 exhaustive_structs = "deny"
230 fn_to_numeric_cast_any = "warn"
231 infinite_loop = "warn"
232 large_stack_arrays = "warn"
233 mismatching_type_param_order = "warn"
234 missing_fields_in_debug = "warn"
235 missing_transmute_annotations = "warn"
236 negative_feature_names = "warn"
237 or_fun_call = "warn"
238 same_functions_in_if_condition = "warn"
239 todo = "warn"
240 transmute_bytes_to_str = "warn"
241 transmute_int_to_bool = "warn"
242 transmute_int_to_non_zero = "warn"
243 transmute_ptr_to_ptr = "warn"
244 transmute_ptr_to_ref = "warn"
245 transmute_undefined_repr = "warn"
246 transmutes_expressible_as_ptr_casts = "warn"
247 trivially_copy_pass_by_ref = "deny"
248 unnecessary_wraps = "warn"
249 useless_transmute = "warn"
250 wildcard_dependencies = "warn"
251
252 [lints.rust]
253 missing_debug_implementations = "deny"
254 trivial_numeric_casts = "deny"
255 unused_lifetimes = "warn"
256 unused_macro_rules = "warn"
257 unused_qualifications = "warn"
258
259 [lints.rust.unexpected_cfgs]
260 level = "warn"
261 priority = 0
262 check-cfg = [
263 "cfg(icu4c_enable_renaming)",
264 "cfg(needs_alloc_error_handler)",
265 "cfg(icu4x_nightly_tests)",
266 "cfg(icu4x_run_size_tests)",
267 "cfg(icu4x_unstable_fast_trie_only)",
268 ]