Debian Codegraph @

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