Debian Codegraph @

debian/rust-vendor/winnow/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.65.0"
15 name = "winnow"
16 version = "1.0.4"
17 build = false
18 include = [
19 "build.rs",
20 "src/**/*",
21 "Cargo.toml",
22 "Cargo.lock",
23 "LICENSE*",
24 "README.md",
25 "examples/**/*",
26 ]
27 autolib = false
28 autobins = false
29 autoexamples = false
30 autotests = false
31 autobenches = false
32 description = "A byte-oriented, zero-copy, parser combinators library"
33 readme = "README.md"
34 keywords = [
35 "parser",
36 "parser-combinators",
37 "parsing",
38 "streaming",
39 "bit",
40 ]
41 categories = ["parsing"]
42 license = "MIT"
43 repository = "https://github.com/winnow-rs/winnow"
44
45 [package.metadata.docs.rs]
46 features = ["unstable-doc"]
47 rustdoc-args = ["--generate-link-to-definition"]
48
49 [[package.metadata.release.pre-release-replacements]]
50 file = "CHANGELOG.md"
51 search = "Unreleased"
52 replace = "{{version}}"
53 min = 1
54
55 [[package.metadata.release.pre-release-replacements]]
56 file = "CHANGELOG.md"
57 search = '\.\.\.HEAD'
58 replace = "...{{tag_name}}"
59 exactly = 1
60
61 [[package.metadata.release.pre-release-replacements]]
62 file = "CHANGELOG.md"
63 search = "ReleaseDate"
64 replace = "{{date}}"
65 min = 1
66
67 [[package.metadata.release.pre-release-replacements]]
68 file = "CHANGELOG.md"
69 search = "<!-- next-header -->"
70 replace = """
71 <!-- next-header -->
72 ## [Unreleased] - ReleaseDate
73 """
74 exactly = 1
75
76 [[package.metadata.release.pre-release-replacements]]
77 file = "CHANGELOG.md"
78 search = "<!-- next-url -->"
79 replace = """
80 <!-- next-url -->
81 [Unreleased]: https://github.com/winnow-rs/winnow/compare/{{tag_name}}...HEAD"""
82 exactly = 1
83
84 [[package.metadata.release.pre-release-replacements]]
85 file = "src/lib.rs"
86 search = 'blob/v.+\..+\..+/CHANGELOG.md'
87 replace = "blob/v{{version}}/CHANGELOG.md"
88 exactly = 1
89
90 [features]
91 alloc = []
92 ascii = ["parser"]
93 binary = ["parser"]
94 debug = [
95 "std",
96 "dep:anstream",
97 "dep:anstyle",
98 "dep:is_terminal_polyfill",
99 "dep:terminal_size",
100 ]
101 default = [
102 "std",
103 "ascii",
104 "binary",
105 ]
106 parser = []
107 simd = ["dep:memchr"]
108 std = [
109 "alloc",
110 "memchr?/std",
111 ]
112 unstable-doc = [
113 "alloc",
114 "std",
115 "ascii",
116 "binary",
117 "simd",
118 "unstable-recover",
119 ]
120 unstable-recover = ["parser"]
121
122 [lib]
123 name = "winnow"
124 path = "src/lib.rs"
125
126 [[example]]
127 name = "arithmetic"
128 path = "examples/arithmetic/main.rs"
129 test = true
130 required-features = [
131 "alloc",
132 "ascii",
133 ]
134
135 [[example]]
136 name = "c_expression"
137 path = "examples/c_expression/main.rs"
138 required-features = [
139 "std",
140 "ascii",
141 ]
142
143 [[example]]
144 name = "css"
145 path = "examples/css/main.rs"
146 test = true
147 required-features = [
148 "alloc",
149 "parser",
150 ]
151
152 [[example]]
153 name = "custom_error"
154 path = "examples/custom_error.rs"
155 test = true
156 required-features = [
157 "alloc",
158 "parser",
159 ]
160
161 [[example]]
162 name = "http"
163 path = "examples/http/main.rs"
164 required-features = [
165 "alloc",
166 "ascii",
167 ]
168
169 [[example]]
170 name = "ini"
171 path = "examples/ini/main.rs"
172 test = true
173 required-features = [
174 "std",
175 "ascii",
176 ]
177
178 [[example]]
179 name = "iterator"
180 path = "examples/iterator.rs"
181 required-features = ["ascii"]
182
183 [[example]]
184 name = "json"
185 path = "examples/json/main.rs"
186 test = true
187 required-features = [
188 "std",
189 "ascii",
190 ]
191
192 [[example]]
193 name = "json_iterator"
194 path = "examples/json_iterator.rs"
195 required-features = [
196 "std",
197 "ascii",
198 ]
199
200 [[example]]
201 name = "ndjson"
202 path = "examples/ndjson/main.rs"
203 test = true
204 required-features = [
205 "std",
206 "ascii",
207 ]
208
209 [[example]]
210 name = "s_expression"
211 path = "examples/s_expression/main.rs"
212 required-features = [
213 "alloc",
214 "ascii",
215 ]
216
217 [[example]]
218 name = "string"
219 path = "examples/string/main.rs"
220 required-features = [
221 "alloc",
222 "ascii",
223 ]
224
225 [[bench]]
226 name = "arithmetic"
227 path = "examples/arithmetic/bench.rs"
228 harness = false
229 required-features = [
230 "alloc",
231 "ascii",
232 ]
233
234 [[bench]]
235 name = "c_expression"
236 path = "examples/c_expression/bench.rs"
237 harness = false
238 required-features = [
239 "std",
240 "ascii",
241 ]
242
243 [[bench]]
244 name = "http"
245 path = "examples/http/bench.rs"
246 harness = false
247 required-features = [
248 "alloc",
249 "ascii",
250 ]
251
252 [[bench]]
253 name = "ini"
254 path = "examples/ini/bench.rs"
255 harness = false
256 required-features = [
257 "std",
258 "ascii",
259 ]
260
261 [[bench]]
262 name = "json"
263 path = "examples/json/bench.rs"
264 harness = false
265 required-features = [
266 "std",
267 "ascii",
268 ]
269
270 [dependencies.anstream]
271 version = "0.6.15"
272 optional = true
273
274 [dependencies.anstyle]
275 version = "1.0.8"
276 optional = true
277
278 [dependencies.is_terminal_polyfill]
279 version = "1.48.1"
280 optional = true
281
282 [dependencies.memchr]
283 version = "2.7"
284 optional = true
285 default-features = false
286
287 [dependencies.terminal_size]
288 version = "0.4.3"
289 optional = true
290
291 [dev-dependencies.annotate-snippets]
292 version = "0.11.4"
293
294 [dev-dependencies.anyhow]
295 version = "1.0.100"
296
297 [dev-dependencies.automod]
298 version = "1.0.15"
299
300 [dev-dependencies.circular]
301 version = "0.3.0"
302
303 [dev-dependencies.criterion]
304 version = "0.5.1"
305
306 [dev-dependencies.lexopt]
307 version = "0.3.1"
308
309 [dev-dependencies.proptest]
310 version = "1.6.0"
311
312 [dev-dependencies.rustc-hash]
313 version = "2.1.1"
314
315 [dev-dependencies.snapbox]
316 version = "0.6.21"
317 features = ["examples"]
318
319 [dev-dependencies.term-transcript]
320 version = "0.2.0"
321
322 [lints.clippy]
323 bool_assert_comparison = "allow"
324 branches_sharing_code = "allow"
325 byte_char_slices = "allow"
326 checked_conversions = "warn"
327 collapsible_else_if = "allow"
328 create_dir = "warn"
329 dbg_macro = "warn"
330 debug_assert_with_mut_call = "warn"
331 doc_markdown = "warn"
332 empty_enums = "warn"
333 enum_glob_use = "warn"
334 expl_impl_clone_on_copy = "warn"
335 explicit_deref_methods = "warn"
336 explicit_into_iter_loop = "warn"
337 fallible_impl_from = "warn"
338 filter_map_next = "warn"
339 flat_map_option = "warn"
340 float_cmp_const = "warn"
341 fn_params_excessive_bools = "warn"
342 from_iter_instead_of_collect = "warn"
343 if_same_then_else = "allow"
344 implicit_clone = "warn"
345 imprecise_flops = "warn"
346 inconsistent_struct_constructor = "warn"
347 inefficient_to_string = "warn"
348 infinite_loop = "warn"
349 invalid_upcast_comparisons = "warn"
350 large_digit_groups = "warn"
351 large_stack_arrays = "warn"
352 large_types_passed_by_value = "warn"
353 let_and_return = "allow"
354 linkedlist = "warn"
355 lossy_float_literal = "warn"
356 macro_use_imports = "warn"
357 mem_forget = "warn"
358 mutex_integer = "warn"
359 needless_continue = "allow"
360 needless_for_each = "warn"
361 negative_feature_names = "warn"
362 path_buf_push_overwrite = "warn"
363 ptr_as_ptr = "warn"
364 rc_mutex = "warn"
365 redundant_feature_names = "warn"
366 ref_option_ref = "warn"
367 rest_pat_in_fully_bound_structs = "warn"
368 result_large_err = "allow"
369 same_functions_in_if_condition = "warn"
370 semicolon_if_nothing_returned = "warn"
371 str_to_string = "warn"
372 string_add = "warn"
373 string_add_assign = "warn"
374 string_lit_as_bytes = "warn"
375 todo = "warn"
376 trait_duplication_in_bounds = "warn"
377 uninlined_format_args = "warn"
378 verbose_file_reads = "warn"
379 wildcard_imports = "warn"
380 zero_sized_map_values = "warn"
381
382 [lints.rust]
383 unnameable_types = "warn"
384 unreachable_pub = "warn"
385 unsafe_op_in_unsafe_fn = "warn"
386 unused_lifetimes = "warn"
387 unused_macro_rules = "warn"
388
389 [lints.rust.rust_2018_idioms]
390 level = "warn"
391 priority = -1
392
393 [profile.bench]
394 lto = true
395 codegen-units = 1
396 debug = 2
397
398 [profile.dev]
399 panic = "abort"
400
401 [profile.release]
402 lto = true
403 codegen-units = 1
404 panic = "abort"