chore: Update winnow

This commit is contained in:
Ed Page 2024-02-13 08:46:25 -06:00
parent 22ba24ad21
commit de3014ef3c
4 changed files with 15 additions and 6 deletions

15
Cargo.lock generated
View file

@ -1289,7 +1289,7 @@ dependencies = [
"serde", "serde",
"serde_spanned", "serde_spanned",
"toml_datetime", "toml_datetime",
"winnow", "winnow 0.5.40",
] ]
[[package]] [[package]]
@ -1327,7 +1327,7 @@ dependencies = [
"thiserror", "thiserror",
"unicode-segmentation", "unicode-segmentation",
"unicode-xid", "unicode-xid",
"winnow", "winnow 0.6.0",
] ]
[[package]] [[package]]
@ -1509,7 +1509,7 @@ name = "varcon-core"
version = "4.0.4" version = "4.0.4"
dependencies = [ dependencies = [
"enumflags2", "enumflags2",
"winnow", "winnow 0.6.0",
] ]
[[package]] [[package]]
@ -1726,6 +1726,15 @@ dependencies = [
"memchr", "memchr",
] ]
[[package]]
name = "winnow"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6b1dbce9e90e5404c5a52ed82b1d13fc8cfbdad85033b6f57546ffd1265f8451"
dependencies = [
"memchr",
]
[[package]] [[package]]
name = "zerocopy" name = "zerocopy"
version = "0.7.32" version = "0.7.32"

View file

@ -14,7 +14,7 @@ include.workspace = true
[dependencies] [dependencies]
anyhow = "1.0" anyhow = "1.0"
thiserror = "1.0" thiserror = "1.0"
winnow = "0.5.40" winnow = "0.6.0"
unicode-xid = "0.2.4" unicode-xid = "0.2.4"
once_cell = "1.19.0" once_cell = "1.19.0"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }

View file

@ -395,7 +395,7 @@ mod parser {
take_while(padding_len..=padding_len, is_base64_padding).parse_next(input)?; take_while(padding_len..=padding_len, is_base64_padding).parse_next(input)?;
let after_offset = input.offset_from(&start); let after_offset = input.offset_from(&start);
input.reset(start); input.reset(&start);
Ok(input.next_slice(after_offset)) Ok(input.next_slice(after_offset))
}) })
.parse_next(input) .parse_next(input)

View file

@ -16,7 +16,7 @@ parser = ["dep:winnow"]
flags = ["dep:enumflags2"] flags = ["dep:enumflags2"]
[dependencies] [dependencies]
winnow = { version = "0.5.40", optional = true } winnow = { version = "0.6.0", optional = true }
enumflags2 = { version = "0.7", optional = true } enumflags2 = { version = "0.7", optional = true }
[package.metadata.docs.rs] [package.metadata.docs.rs]