Debian Codegraph @

third_party/rust/serde_with/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.70"
15 name = "serde_with"
16 version = "3.12.0"
17 authors = [
18 "Jonas Bushart",
19 "Marcin Kaźmierczak",
20 ]
21 build = false
22 include = [
23 "src/**/*",
24 "tests/**/*",
25 "LICENSE-*",
26 "README.md",
27 "CHANGELOG.md",
28 ]
29 autolib = false
30 autobins = false
31 autoexamples = false
32 autotests = false
33 autobenches = false
34 description = "Custom de/serialization functions for Rust's serde"
35 documentation = "https://docs.rs/serde_with/"
36 readme = "README.md"
37 keywords = [
38 "serde",
39 "utilities",
40 "serialization",
41 "deserialization",
42 ]
43 categories = [
44 "encoding",
45 "no-std",
46 "no-std::no-alloc",
47 ]
48 license = "MIT OR Apache-2.0"
49 repository = "https://github.com/jonasbb/serde_with/"
50
51 [package.metadata.docs.rs]
52 all-features = true
53 rustdoc-args = [
54 "--cfg=docsrs",
55 "-Zunstable-options",
56 "--generate-link-to-definition",
57 ]
58
59 [package.metadata.release]
60 tag = true
61 tag-message = "{{crate_name}} v{{version}}"
62 tag-name = "v{{version}}"
63
64 [[package.metadata.release.pre-release-replacements]]
65 file = "CHANGELOG.md"
66 replace = """
67 [Unreleased]
68
69 ## [{{version}}] - {{date}}"""
70 search = '\[Unreleased\]'
71
72 [[package.metadata.release.pre-release-replacements]]
73 file = "src/lib.rs"
74 replace = "https://docs.rs/serde_with/{{version}}/"
75 search = 'https://docs\.rs/serde_with/[\d.]+/'
76
77 [[package.metadata.release.pre-release-replacements]]
78 file = "README.md"
79 replace = "https://docs.rs/serde_with/{{version}}/"
80 search = 'https://docs\.rs/serde_with/[\d.]+/'
81
82 [lib]
83 name = "serde_with"
84 path = "src/lib.rs"
85
86 [[test]]
87 name = "base64"
88 path = "tests/base64.rs"
89 required-features = [
90 "base64",
91 "macros",
92 ]
93
94 [[test]]
95 name = "chrono_0_4"
96 path = "tests/chrono_0_4.rs"
97 required-features = [
98 "chrono_0_4",
99 "macros",
100 ]
101
102 [[test]]
103 name = "derives"
104 path = "tests/derives/lib.rs"
105 required-features = ["macros"]
106
107 [[test]]
108 name = "hashbrown_0_14"
109 path = "tests/hashbrown_0_14.rs"
110 required-features = [
111 "hashbrown_0_14",
112 "macros",
113 ]
114
115 [[test]]
116 name = "hashbrown_0_15"
117 path = "tests/hashbrown_0_15.rs"
118 required-features = [
119 "hashbrown_0_15",
120 "macros",
121 ]
122
123 [[test]]
124 name = "hex"
125 path = "tests/hex.rs"
126 required-features = [
127 "hex",
128 "macros",
129 ]
130
131 [[test]]
132 name = "indexmap_1"
133 path = "tests/indexmap_1.rs"
134 required-features = [
135 "indexmap_1",
136 "macros",
137 ]
138
139 [[test]]
140 name = "indexmap_2"
141 path = "tests/indexmap_2.rs"
142 required-features = [
143 "indexmap_2",
144 "macros",
145 ]
146
147 [[test]]
148 name = "json"
149 path = "tests/json.rs"
150 required-features = [
151 "json",
152 "macros",
153 ]
154
155 [[test]]
156 name = "rust"
157 path = "tests/rust.rs"
158 required-features = ["alloc"]
159
160 [[test]]
161 name = "schemars_0_8"
162 path = "tests/schemars_0_8.rs"
163 required-features = ["schemars_0_8"]
164
165 [[test]]
166 name = "serde_as"
167 path = "tests/serde_as/lib.rs"
168 required-features = ["macros"]
169
170 [[test]]
171 name = "time_0_3"
172 path = "tests/time_0_3.rs"
173 required-features = [
174 "macros",
175 "time_0_3",
176 ]
177
178 [[test]]
179 name = "utils"
180 path = "tests/utils.rs"
181
182 [[test]]
183 name = "version_numbers"
184 path = "tests/version_numbers.rs"
185
186 [[test]]
187 name = "with_prefix"
188 path = "tests/with_prefix.rs"
189 required-features = ["macros"]
190
191 [[test]]
192 name = "with_suffix"
193 path = "tests/with_suffix.rs"
194
195 [dependencies.base64]
196 version = "0.22.1"
197 optional = true
198 default-features = false
199
200 [dependencies.chrono_0_4]
201 version = "0.4.20"
202 features = ["serde"]
203 optional = true
204 default-features = false
205 package = "chrono"
206
207 [dependencies.doc-comment]
208 version = "0.3.3"
209 optional = true
210
211 [dependencies.document-features]
212 version = "0.2.7"
213 optional = true
214
215 [dependencies.hashbrown_0_14]
216 version = "0.14.0"
217 features = ["serde"]
218 optional = true
219 default-features = false
220 package = "hashbrown"
221
222 [dependencies.hashbrown_0_15]
223 version = "0.15.0"
224 features = ["serde"]
225 optional = true
226 default-features = false
227 package = "hashbrown"
228
229 [dependencies.hex]
230 version = "0.4.3"
231 optional = true
232 default-features = false
233
234 [dependencies.indexmap_1]
235 version = "1.8"
236 features = ["serde-1"]
237 optional = true
238 default-features = false
239 package = "indexmap"
240
241 [dependencies.indexmap_2]
242 version = "2.0"
243 features = ["serde"]
244 optional = true
245 default-features = false
246 package = "indexmap"
247
248 [dependencies.schemars_0_8]
249 version = "0.8.16"
250 optional = true
251 default-features = false
252 package = "schemars"
253
254 [dependencies.serde]
255 version = "1.0.152"
256 default-features = false
257
258 [dependencies.serde_derive]
259 version = "1.0.152"
260
261 [dependencies.serde_json]
262 version = "1.0.45"
263 optional = true
264 default-features = false
265
266 [dependencies.serde_with_macros]
267 version = "=3.12.0"
268 optional = true
269
270 [dependencies.time_0_3]
271 version = "~0.3.36"
272 optional = true
273 default-features = false
274 package = "time"
275
276 [dev-dependencies.expect-test]
277 version = "1.5.0"
278
279 [dev-dependencies.fnv]
280 version = "1.0.6"
281
282 [dev-dependencies.glob]
283 version = "0.3.0"
284
285 [dev-dependencies.jsonschema]
286 version = "0.26.1"
287 features = ["resolve-file"]
288 default-features = false
289
290 [dev-dependencies.mime]
291 version = "0.3.16"
292
293 [dev-dependencies.pretty_assertions]
294 version = "1.4.0"
295
296 [dev-dependencies.regex]
297 version = "1.11.0"
298 features = ["std"]
299 default-features = false
300
301 [dev-dependencies.rmp-serde]
302 version = "1.3.0"
303
304 [dev-dependencies.ron]
305 version = "0.8"
306
307 [dev-dependencies.rustversion]
308 version = "1.0.0"
309
310 [dev-dependencies.schemars_0_8]
311 version = "0.8.16"
312 package = "schemars"
313
314 [dev-dependencies.serde]
315 version = "1.0.152"
316 features = ["derive"]
317 default-features = false
318
319 [dev-dependencies.serde-xml-rs]
320 version = "0.6.0"
321
322 [dev-dependencies.serde_json]
323 version = "1.0.25"
324 features = ["preserve_order"]
325
326 [dev-dependencies.serde_test]
327 version = "1.0.124"
328
329 [dev-dependencies.serde_yaml]
330 version = "0.9.2"
331
332 [dev-dependencies.version-sync]
333 version = "0.9.1"
334
335 [features]
336 alloc = [
337 "serde/alloc",
338 "base64?/alloc",
339 "chrono_0_4?/alloc",
340 "hex?/alloc",
341 "serde_json?/alloc",
342 "time_0_3?/alloc",
343 ]
344 base64 = [
345 "dep:base64",
346 "alloc",
347 ]
348 chrono = ["chrono_0_4"]
349 chrono_0_4 = ["dep:chrono_0_4"]
350 default = [
351 "std",
352 "macros",
353 ]
354 guide = [
355 "dep:doc-comment",
356 "dep:document-features",
357 "macros",
358 "std",
359 ]
360 hashbrown_0_14 = [
361 "dep:hashbrown_0_14",
362 "alloc",
363 ]
364 hashbrown_0_15 = [
365 "dep:hashbrown_0_15",
366 "alloc",
367 ]
368 hex = [
369 "dep:hex",
370 "alloc",
371 ]
372 indexmap = ["indexmap_1"]
373 indexmap_1 = [
374 "dep:indexmap_1",
375 "alloc",
376 ]
377 indexmap_2 = [
378 "dep:indexmap_2",
379 "alloc",
380 ]
381 json = [
382 "dep:serde_json",
383 "alloc",
384 ]
385 macros = ["dep:serde_with_macros"]
386 schemars_0_8 = [
387 "dep:schemars_0_8",
388 "std",
389 "serde_with_macros?/schemars_0_8",
390 ]
391 std = [
392 "alloc",
393 "serde/std",
394 "chrono_0_4?/clock",
395 "chrono_0_4?/std",
396 "indexmap_1?/std",
397 "indexmap_2?/std",
398 "time_0_3?/serde-well-known",
399 "time_0_3?/std",
400 ]
401 time_0_3 = ["dep:time_0_3"]
402
403 [badges.maintenance]
404 status = "actively-developed"
405
406 [lints.clippy]
407 cloned_instead_of_copied = "warn"
408 default_trait_access = "warn"
409 doc_markdown = "warn"
410 explicit_auto_deref = "allow"
411 manual-unwrap-or-default = "allow"
412 redundant_closure_for_method_calls = "warn"
413 semicolon_if_nothing_returned = "warn"
414
415 [lints.rust]
416 missing_docs = "warn"
417 trivial_casts = "warn"
418 trivial_numeric_casts = "warn"
419 unused_extern_crates = "warn"
420 unused_import_braces = "warn"
421 variant_size_differences = "warn"
422
423 [lints.rust.rust_2018_idioms]
424 level = "warn"
425 priority = -1
426
427 [lints.rust.unexpected_cfgs]
428 level = "warn"
429 priority = 0
430 check-cfg = [
431 "cfg(tarpaulin)",
432 "cfg(tarpaulin_include)",
433 ]
434
435 [lints.rustdoc]
436 missing_crate_level_docs = "warn"