Debian Codegraph @

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