Debian Codegraph @

debian/rust-vendor/zerotrie/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 = "2021"
14 rust-version = "1.82"
15 name = "zerotrie"
16 version = "0.2.5"
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 = "A data structure that efficiently maps strings to integers"
36 homepage = "https://icu4x.unicode.org"
37 readme = "README.md"
38 keywords = [
39 "zero-copy",
40 "serialization",
41 "memory-efficiency",
42 "trie",
43 ]
44 categories = [
45 "internationalization",
46 "localization",
47 "no-std",
48 "embedded",
49 ]
50 license = "Unicode-3.0"
51 repository = "https://github.com/unicode-org/icu4x"
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 alloc = ["zerovec?/alloc"]
61 databake = [
62 "dep:databake",
63 "zerovec?/databake",
64 ]
65 default = []
66 dense = ["dep:zerovec"]
67 litemap = [
68 "dep:litemap",
69 "alloc",
70 ]
71 serde = [
72 "dep:serde_core",
73 "dep:litemap",
74 "alloc",
75 "litemap/serde",
76 "zerovec?/serde",
77 ]
78 yoke = ["dep:yoke"]
79 zerofrom = ["dep:zerofrom"]
80 zerovec = ["dep:zerovec"]
81
82 [lib]
83 name = "zerotrie"
84 path = "src/lib.rs"
85 bench = false
86
87 [[example]]
88 name = "first_weekday_for_region"
89 path = "examples/first_weekday_for_region.rs"
90
91 [[test]]
92 name = "asciitrie_test"
93 path = "tests/asciitrie_test.rs"
94 required-features = [
95 "alloc",
96 "litemap",
97 ]
98
99 [[test]]
100 name = "builder_test"
101 path = "tests/builder_test.rs"
102 required-features = [
103 "alloc",
104 "litemap",
105 ]
106
107 [[test]]
108 name = "dense_test"
109 path = "tests/dense_test.rs"
110 required-features = [
111 "alloc",
112 "dense",
113 ]
114
115 [[test]]
116 name = "derive_test"
117 path = "tests/derive_test.rs"
118
119 [[test]]
120 name = "ignorecase_test"
121 path = "tests/ignorecase_test.rs"
122
123 [[test]]
124 name = "locale_aux_test"
125 path = "tests/locale_aux_test.rs"
126 required-features = [
127 "alloc",
128 "litemap",
129 ]
130
131 [[bench]]
132 name = "overview"
133 path = "benches/overview.rs"
134 harness = false
135 required-features = [
136 "alloc",
137 "litemap",
138 ]
139
140 [dependencies.databake]
141 version = "0.2.0"
142 features = ["derive"]
143 optional = true
144 default-features = false
145
146 [dependencies.displaydoc]
147 version = "0.2.3"
148 default-features = false
149
150 [dependencies.litemap]
151 version = "0.8.0"
152 features = ["alloc"]
153 optional = true
154 default-features = false
155
156 [dependencies.serde_core]
157 version = "1.0.220"
158 optional = true
159 default-features = false
160
161 [dependencies.yoke]
162 version = "0.8.3"
163 features = ["derive"]
164 optional = true
165 default-features = false
166
167 [dependencies.zerofrom]
168 version = "0.1.6"
169 optional = true
170 default-features = false
171
172 [dependencies.zerovec]
173 version = "0.11.7"
174 optional = true
175 default-features = false
176
177 [dev-dependencies.bincode]
178 version = "1.3.1"
179
180 [dev-dependencies.icu_locale_core]
181 version = "2.3.0"
182 features = ["alloc"]
183 default-features = false
184
185 [dev-dependencies.itertools]
186 version = "0.14.0"
187
188 [dev-dependencies.postcard]
189 version = "1.0.3"
190 features = ["alloc"]
191 default-features = false
192
193 [dev-dependencies.rand]
194 version = "0.9"
195
196 [dev-dependencies.rand_pcg]
197 version = "0.9"
198
199 [dev-dependencies.rmp-serde]
200 version = "1.2.0"
201
202 [dev-dependencies.serde]
203 version = "1.0.220"
204 features = ["derive"]
205 default-features = false
206
207 [dev-dependencies.serde_json]
208 version = "1.0.45"
209
210 [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
211 version = "0.5.0"
212
213 [lints.clippy]
214 alloc_instead_of_core = "warn"
215 bool_assert_comparison = "allow"
216 branches_sharing_code = "warn"
217 collection_is_never_read = "warn"
218 crosspointer_transmute = "warn"
219 dbg_macro = "warn"
220 debug_assert_with_mut_call = "warn"
221 doc_markdown = "warn"
222 exhaustive_enums = "deny"
223 exhaustive_structs = "deny"
224 fn_to_numeric_cast_any = "warn"
225 infinite_loop = "warn"
226 large_stack_arrays = "warn"
227 mismatching_type_param_order = "warn"
228 missing_fields_in_debug = "warn"
229 missing_transmute_annotations = "warn"
230 negative_feature_names = "warn"
231 or_fun_call = "warn"
232 same_functions_in_if_condition = "warn"
233 todo = "warn"
234 transmute_bytes_to_str = "warn"
235 transmute_int_to_bool = "warn"
236 transmute_int_to_non_zero = "warn"
237 transmute_ptr_to_ptr = "warn"
238 transmute_ptr_to_ref = "warn"
239 transmute_undefined_repr = "warn"
240 transmutes_expressible_as_ptr_casts = "warn"
241 trivially_copy_pass_by_ref = "deny"
242 unnecessary_wraps = "warn"
243 useless_transmute = "warn"
244 wildcard_dependencies = "warn"
245
246 [lints.rust]
247 missing_debug_implementations = "deny"
248 trivial_numeric_casts = "deny"
249 unused_lifetimes = "warn"
250 unused_macro_rules = "warn"
251 unused_qualifications = "warn"
252
253 [lints.rust.unexpected_cfgs]
254 level = "warn"
255 priority = 0
256 check-cfg = [
257 "cfg(icu4c_enable_renaming)",
258 "cfg(needs_alloc_error_handler)",
259 "cfg(icu4x_nightly_tests)",
260 "cfg(icu4x_run_size_tests)",
261 "cfg(icu4x_unstable_fast_trie_only)",
262 ]