Debian Codegraph @

debian/rust-vendor/icu_locale_core/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_core"
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 managing Unicode Language and Locale Identifiers"
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.docs.rs]
54 all-features = true
55
56 [package.metadata.cargo-semver-checks.lints]
57 workspace = true
58 repr_transparent_added = "allow"
59
60 [features]
61 alloc = [
62 "litemap/alloc",
63 "tinystr/alloc",
64 "writeable/alloc",
65 "serde?/alloc",
66 ]
67 databake = [
68 "dep:databake",
69 "alloc",
70 ]
71 serde = [
72 "dep:serde",
73 "tinystr/serde",
74 ]
75 zerovec = [
76 "dep:zerovec",
77 "tinystr/zerovec",
78 ]
79
80 [lib]
81 name = "icu_locale_core"
82 path = "src/lib.rs"
83 bench = false
84
85 [[test]]
86 name = "langid"
87 path = "tests/langid.rs"
88
89 [[test]]
90 name = "locale"
91 path = "tests/locale.rs"
92
93 [[bench]]
94 name = "iai_langid"
95 path = "benches/iai_langid.rs"
96 harness = false
97
98 [[bench]]
99 name = "langid"
100 path = "benches/langid.rs"
101 harness = false
102
103 [[bench]]
104 name = "locale"
105 path = "benches/locale.rs"
106 harness = false
107
108 [[bench]]
109 name = "subtags"
110 path = "benches/subtags.rs"
111 harness = false
112
113 [dependencies.databake]
114 version = "0.2.0"
115 features = ["derive"]
116 optional = true
117 default-features = false
118
119 [dependencies.displaydoc]
120 version = "0.2.3"
121 default-features = false
122
123 [dependencies.litemap]
124 version = "0.8.0"
125 default-features = false
126
127 [dependencies.serde]
128 version = "1.0.220"
129 features = ["derive"]
130 optional = true
131 default-features = false
132
133 [dependencies.tinystr]
134 version = "0.8.4"
135 default-features = false
136
137 [dependencies.writeable]
138 version = "0.6.4"
139 default-features = false
140
141 [dependencies.zerovec]
142 version = "0.11.7"
143 optional = true
144 default-features = false
145
146 [dev-dependencies.iai]
147 version = "0.1.1"
148
149 [dev-dependencies.litemap]
150 version = "0.8.0"
151 features = ["testing"]
152 default-features = false
153
154 [dev-dependencies.postcard]
155 version = "1.0.3"
156 features = ["use-std"]
157 default-features = false
158
159 [dev-dependencies.potential_utf]
160 version = "0.1.3"
161 default-features = false
162
163 [dev-dependencies.serde]
164 version = "1.0.220"
165 features = ["derive"]
166 default-features = false
167
168 [dev-dependencies.serde_json]
169 version = "1.0.45"
170
171 [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
172 version = "0.5.0"
173
174 [lints.clippy]
175 alloc_instead_of_core = "warn"
176 bool_assert_comparison = "allow"
177 branches_sharing_code = "warn"
178 collection_is_never_read = "warn"
179 crosspointer_transmute = "warn"
180 dbg_macro = "warn"
181 debug_assert_with_mut_call = "warn"
182 doc_markdown = "warn"
183 exhaustive_enums = "deny"
184 exhaustive_structs = "deny"
185 fn_to_numeric_cast_any = "warn"
186 infinite_loop = "warn"
187 large_stack_arrays = "warn"
188 mismatching_type_param_order = "warn"
189 missing_fields_in_debug = "warn"
190 missing_transmute_annotations = "warn"
191 negative_feature_names = "warn"
192 or_fun_call = "warn"
193 same_functions_in_if_condition = "warn"
194 todo = "warn"
195 transmute_bytes_to_str = "warn"
196 transmute_int_to_bool = "warn"
197 transmute_int_to_non_zero = "warn"
198 transmute_ptr_to_ptr = "warn"
199 transmute_ptr_to_ref = "warn"
200 transmute_undefined_repr = "warn"
201 transmutes_expressible_as_ptr_casts = "warn"
202 trivially_copy_pass_by_ref = "deny"
203 unnecessary_wraps = "warn"
204 useless_transmute = "warn"
205 wildcard_dependencies = "warn"
206
207 [lints.rust]
208 missing_debug_implementations = "deny"
209 trivial_numeric_casts = "deny"
210 unused_lifetimes = "warn"
211 unused_macro_rules = "warn"
212 unused_qualifications = "warn"
213
214 [lints.rust.unexpected_cfgs]
215 level = "warn"
216 priority = 0
217 check-cfg = [
218 "cfg(icu4c_enable_renaming)",
219 "cfg(needs_alloc_error_handler)",
220 "cfg(icu4x_nightly_tests)",
221 "cfg(icu4x_run_size_tests)",
222 "cfg(icu4x_unstable_fast_trie_only)",
223 ]