Debian Codegraph @

debian/missing-sources/winnow/Cargo.toml

raw symbols SCIP
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.14"
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 debug = [
93 "std",
94 "dep:anstream",
95 "dep:anstyle",
96 "dep:is_terminal_polyfill",
97 "dep:terminal_size",
98 ]
99 default = ["std"]
100 simd = ["dep:memchr"]
101 std = [
102 "alloc",
103 "memchr?/std",
104 ]
105 unstable-doc = [
106 "alloc",
107 "std",
108 "simd",
109 "unstable-recover",
110 ]
111 unstable-recover = []
112
113 [lib]
114 name = "winnow"
115 path = "src/lib.rs"
116
117 [[example]]
118 name = "arithmetic"
119 path = "examples/arithmetic/main.rs"
120 test = true
121 required-features = ["alloc"]
122
123 [[example]]
124 name = "c_expression"
125 path = "examples/c_expression/main.rs"
126 required-features = ["std"]
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 = "c_expression"
190 path = "examples/c_expression/bench.rs"
191 harness = false
192 required-features = ["std"]
193
194 [[bench]]
195 name = "http"
196 path = "examples/http/bench.rs"
197 harness = false
198 required-features = ["alloc"]
199
200 [[bench]]
201 name = "ini"
202 path = "examples/ini/bench.rs"
203 harness = false
204 required-features = ["std"]
205
206 [[bench]]
207 name = "json"
208 path = "examples/json/bench.rs"
209 harness = false
210 required-features = ["std"]
211
212 [dependencies.anstream]
213 version = "0.6.15"
214 optional = true
215
216 [dependencies.anstyle]
217 version = "1.0.8"
218 optional = true
219
220 [dependencies.is_terminal_polyfill]
221 version = "1.48.1"
222 optional = true
223
224 [dependencies.memchr]
225 version = "2.7"
226 optional = true
227 default-features = false
228
229 [dependencies.terminal_size]
230 version = "0.4.3"
231 optional = true
232
233 [dev-dependencies.annotate-snippets]
234 version = "0.11.4"
235
236 [dev-dependencies.anyhow]
237 version = "1.0.100"
238
239 [dev-dependencies.automod]
240 version = "1.0.15"
241
242 [dev-dependencies.circular]
243 version = "0.3.0"
244
245 [dev-dependencies.criterion]
246 version = "0.5.1"
247
248 [dev-dependencies.lexopt]
249 version = "0.3.1"
250
251 [dev-dependencies.proptest]
252 version = "1.6.0"
253
254 [dev-dependencies.rustc-hash]
255 version = "2.1.1"
256
257 [dev-dependencies.snapbox]
258 version = "0.6.21"
259 features = ["examples"]
260
261 [dev-dependencies.term-transcript]
262 version = "0.2.0"
263
264 [lints.clippy]
265 bool_assert_comparison = "allow"
266 branches_sharing_code = "allow"
267 checked_conversions = "warn"
268 collapsible_else_if = "allow"
269 create_dir = "warn"
270 dbg_macro = "warn"
271 debug_assert_with_mut_call = "warn"
272 doc_markdown = "warn"
273 empty_enum = "warn"
274 enum_glob_use = "warn"
275 expl_impl_clone_on_copy = "warn"
276 explicit_deref_methods = "warn"
277 explicit_into_iter_loop = "warn"
278 fallible_impl_from = "warn"
279 filter_map_next = "warn"
280 flat_map_option = "warn"
281 float_cmp_const = "warn"
282 fn_params_excessive_bools = "warn"
283 from_iter_instead_of_collect = "warn"
284 if_same_then_else = "allow"
285 implicit_clone = "warn"
286 imprecise_flops = "warn"
287 inconsistent_struct_constructor = "warn"
288 inefficient_to_string = "warn"
289 infinite_loop = "warn"
290 invalid_upcast_comparisons = "warn"
291 large_digit_groups = "warn"
292 large_stack_arrays = "warn"
293 large_types_passed_by_value = "warn"
294 let_and_return = "allow"
295 linkedlist = "warn"
296 lossy_float_literal = "warn"
297 macro_use_imports = "warn"
298 mem_forget = "warn"
299 mutex_integer = "warn"
300 needless_continue = "allow"
301 needless_for_each = "warn"
302 negative_feature_names = "warn"
303 path_buf_push_overwrite = "warn"
304 ptr_as_ptr = "warn"
305 rc_mutex = "warn"
306 redundant_feature_names = "warn"
307 ref_option_ref = "warn"
308 rest_pat_in_fully_bound_structs = "warn"
309 result_large_err = "allow"
310 same_functions_in_if_condition = "warn"
311 semicolon_if_nothing_returned = "warn"
312 str_to_string = "warn"
313 string_add = "warn"
314 string_add_assign = "warn"
315 string_lit_as_bytes = "warn"
316 string_to_string = "warn"
317 todo = "warn"
318 trait_duplication_in_bounds = "warn"
319 uninlined_format_args = "warn"
320 verbose_file_reads = "warn"
321 wildcard_imports = "allow"
322 zero_sized_map_values = "warn"
323
324 [lints.rust]
325 unnameable_types = "warn"
326 unreachable_pub = "warn"
327 unsafe_op_in_unsafe_fn = "warn"
328 unused_lifetimes = "warn"
329 unused_macro_rules = "warn"
330
331 [lints.rust.rust_2018_idioms]
332 level = "warn"
333 priority = -1
334
335 [profile.bench]
336 lto = true
337 codegen-units = 1
338 debug = 2
339
340 [profile.dev]
341 panic = "abort"
342
343 [profile.release]
344 lto = true
345 codegen-units = 1
346 panic = "abort"