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