Debian Codegraph @

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