Debian Codegraph @

debian/rust-vendor/icu_locale/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_locale"
16 version = "2.3.1"
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 Unicode Language and Locale Identifiers canonicalization"
36 homepage = "https://icu4x.unicode.org"
37 readme = "README.md"
38 keywords = [
39 "unicode",
40 "language-tags",
41 "bcp47",
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.cargo-all-features]
54 skip_optional_dependencies = true
55
56 [package.metadata.docs.rs]
57 all-features = true
58
59 [features]
60 compiled_data = [
61 "dep:icu_locale_data",
62 "icu_locale_fallback/compiled_data",
63 "icu_provider/baked",
64 ]
65 datagen = [
66 "serde",
67 "dep:databake",
68 "zerovec/databake",
69 "icu_locale_core/databake",
70 "icu_locale_fallback/datagen",
71 "tinystr/databake",
72 "icu_collections/databake",
73 "icu_provider/export",
74 "icu_pattern?/databake",
75 ]
76 default = ["compiled_data"]
77 serde = [
78 "dep:serde",
79 "icu_locale_core/serde",
80 "icu_locale_fallback/serde",
81 "tinystr/serde",
82 "zerovec/serde",
83 "icu_provider/serde",
84 "icu_collections/serde",
85 "icu_pattern?/serde",
86 ]
87 unstable = [
88 "dep:writeable",
89 "dep:displaydoc",
90 "dep:either",
91 "dep:icu_pattern",
92 "zerovec/derive",
93 ]
94
95 [lib]
96 name = "icu_locale"
97 path = "src/lib.rs"
98 bench = false
99
100 [[test]]
101 name = "locale_canonicalizer"
102 path = "tests/locale_canonicalizer.rs"
103 required-features = ["serde"]
104
105 [[bench]]
106 name = "locale_canonicalizer"
107 path = "benches/locale_canonicalizer.rs"
108 harness = false
109
110 [dependencies.databake]
111 version = "0.2.0"
112 features = ["derive"]
113 optional = true
114 default-features = false
115
116 [dependencies.displaydoc]
117 version = "0.2.3"
118 optional = true
119 default-features = false
120
121 [dependencies.either]
122 version = "1.9.0"
123 optional = true
124 default-features = false
125
126 [dependencies.icu_collections]
127 version = "~2.3.0"
128 default-features = false
129
130 [dependencies.icu_locale_core]
131 version = "2.3.0"
132 features = [
133 "alloc",
134 "zerovec",
135 ]
136 default-features = false
137
138 [dependencies.icu_locale_data]
139 version = "~2.3.0"
140 optional = true
141 default-features = false
142
143 [dependencies.icu_locale_fallback]
144 version = "~2.3.0"
145 default-features = false
146
147 [dependencies.icu_pattern]
148 version = "0.5.0"
149 features = [
150 "alloc",
151 "yoke",
152 "zerovec",
153 ]
154 optional = true
155 default-features = false
156
157 [dependencies.icu_provider]
158 version = "2.3.0"
159 features = ["alloc"]
160 default-features = false
161
162 [dependencies.serde]
163 version = "1.0.220"
164 features = [
165 "derive",
166 "alloc",
167 ]
168 optional = true
169 default-features = false
170
171 [dependencies.tinystr]
172 version = "0.8.4"
173 features = [
174 "alloc",
175 "zerovec",
176 ]
177 default-features = false
178
179 [dependencies.writeable]
180 version = "0.6.4"
181 optional = true
182 default-features = false
183
184 [dependencies.zerovec]
185 version = "0.11.8"
186 features = [
187 "alloc",
188 "yoke",
189 ]
190 default-features = false
191
192 [dev-dependencies.serde]
193 version = "1.0.220"
194 features = ["derive"]
195 default-features = false
196
197 [dev-dependencies.serde_json]
198 version = "1.0.45"
199
200 [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
201 version = "0.5.0"
202
203 [lints.clippy]
204 alloc_instead_of_core = "warn"
205 bool_assert_comparison = "allow"
206 branches_sharing_code = "warn"
207 collection_is_never_read = "warn"
208 crosspointer_transmute = "warn"
209 dbg_macro = "warn"
210 debug_assert_with_mut_call = "warn"
211 doc_markdown = "warn"
212 exhaustive_enums = "deny"
213 exhaustive_structs = "deny"
214 fn_to_numeric_cast_any = "warn"
215 infinite_loop = "warn"
216 large_stack_arrays = "warn"
217 mismatching_type_param_order = "warn"
218 missing_fields_in_debug = "warn"
219 missing_transmute_annotations = "warn"
220 negative_feature_names = "warn"
221 or_fun_call = "warn"
222 same_functions_in_if_condition = "warn"
223 todo = "warn"
224 transmute_bytes_to_str = "warn"
225 transmute_int_to_bool = "warn"
226 transmute_int_to_non_zero = "warn"
227 transmute_ptr_to_ptr = "warn"
228 transmute_ptr_to_ref = "warn"
229 transmute_undefined_repr = "warn"
230 transmutes_expressible_as_ptr_casts = "warn"
231 trivially_copy_pass_by_ref = "deny"
232 unnecessary_wraps = "warn"
233 useless_transmute = "warn"
234 wildcard_dependencies = "warn"
235
236 [lints.rust]
237 missing_debug_implementations = "deny"
238 trivial_numeric_casts = "deny"
239 unused_lifetimes = "warn"
240 unused_macro_rules = "warn"
241 unused_qualifications = "warn"
242
243 [lints.rust.unexpected_cfgs]
244 level = "warn"
245 priority = 0
246 check-cfg = [
247 "cfg(icu4c_enable_renaming)",
248 "cfg(needs_alloc_error_handler)",
249 "cfg(icu4x_nightly_tests)",
250 "cfg(icu4x_run_size_tests)",
251 "cfg(icu4x_unstable_fast_trie_only)",
252 ]