Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 9, 2025

This PR contains the following updates:

Package Type Update Change
winnow dependencies minor 0.5.34 -> 0.7.0

Release Notes

winnow-rs/winnow (winnow)

v0.7.10

Compare Source

Compatibility
  • Deprecated Stream::raw
Features
  • Added Stream::trace for better customization of trace parsers
Fixes
  • Remove initial from TokenSlice / LocatingSlices Debug impl
  • Stream::trace prints non-pretty output for &[T] and TokenSlice<T>

v0.7.9

Compare Source

Features
  • Add ContextError::extend
  • Add Parser::context_with

v0.7.8

Compare Source

Features
  • Add ContextError::push
  • Add Parser::map_err

v0.7.7

Compare Source

Fixes
  • Ensure LocatedSlice and Statefuls Stream::raw gets the inner input

v0.7.6

Compare Source

Features
  • Add TokenSlice::previous_tokens

v0.7.5

Compare Source

Features
  • Add Stream::next_slice_unchecked and Stream::peek_slice_unchecked

v0.7.4

Compare Source

Documentation
  • Clarify empty
  • Clarify dispatch!
  • (cookbook) Discuss lexing
  • (tutorial) Iterate on how we discuss errors

v0.7.3

Compare Source

Features
  • Add ParseError::char_span

v0.7.2

Compare Source

Fixes
  • Make Range Copyable

v0.7.1

Compare Source

Compatibility
  • Deprecated Stream::raw
Features
  • Added Stream::trace for better customization of trace parsers
Fixes
  • Remove initial from TokenSlice / LocatingSlices Debug impl
  • Stream::trace prints non-pretty output for &[T] and TokenSlice<T>

v0.7.0

Compare Source

Migration Guide
  1. Upgrade to the latest 0.6 release
  2. Resolve all deprecations
  3. Replace impl Parser<_, _, _> with impl ModalParser<_, _, _>
  4. Upgrade to 0.7.0
  5. Resolve any compiler errors
  • For custom errors, remove switch from from_error_kind to from_input and remove other kind parameters
  • For seq!(<tuple>), you may need to add mut to shared parsers
  • For Stream::peek* calls, update for lack of Stream being returned
  • Where ModalParser couldn't be used, change Parser<I, O, E> to Parser<I, O, ErrMode<E>>
  1. Resolve all deprecations

If you do not use cut_err or Partial, you can further clean up the code and improve performance by removing the use of ErrMode

  • Replace ModalResult<O, E> with winnow::Result<O> (if using default error type) or just Result<O, E>
  • Replace impl ModalParser with impl Parser
  • Remove uses of ErrMode
Compatibility
  • escaped and take_escaped now assert, rather than stop, on empty normal output
  • Some parsers used in seq(<tuple>) must now be mut
  • Stream::peek_token, Stream::peek_slice, Stream::peek_finish no longer return a clone of Stream
  • trait Locations functions have changed to improve parsing of lexed tokens
  • ParserError::append and FromExternalError::from_external_errors kind parameter has been removed
  • ParserError, AsChar, ContainsToken, Stream were added to the prelude
  • Some trait bounds changed
  • Deprecated functionality removed
  • Deprecated escaped_transform in favor of the new name escaped
Features
  • Decoupled ErrMode from the core traits through new ModalError trait and ParserError modal functions, allowing better performance and greater flexibility
  • Add ParserError, AsChar, ContainsToken, Stream to the prelude
  • Add stream::TokenSlice to help parsing of lexed tokens
  • Implement ErrorConvert for ErrMode
Fixes
  • Borrow parsers in seq!(<tuple>) so they can be used multiple times
  • escaped and take_escaped now assert, rather than stop, on empty normal output
  • Improve type inference for Parser::by_ref, Parser::complete_err
  • Improve error reports for float
  • Added an inherent ParserError::append to reduce boilerplate with custom errors
  • Added support for TreeError with binary::bits parsers
  • escaped can now have separate types for normal and escaped parsers
Documentation
  • Modernized reference examples

v0.6.26

Compare Source

Compatibility
  • Deprecate ParserError::from_error_kind in favor of ParserError::from_input
  • Deprecate InputError::new in favor of InputError::at
  • Deprecate ErrorKind
    • If used as an error, consider EmptyError
    • For ParserError::append, just add an #[allow(deprecated)]
Features
  • Add EmptyError which is like () but compatible with Parser::parse
  • Add ParserError::from_input to help with the transition to 0.7
  • Add InputError::at to help with the transition to 0.7

v0.6.25

Compare Source

Compatibility
  • Deprecated PResult in favor of ModalResult: v0.7 will make ErrMode optional and PResult will no longer be descriptive enough
  • Deprecate IResult in favor of PResult<(I, O)>
Documentation
  • Update comparison with nom
Fixes
  • Ensure we append errors in repeat(_).fold(1..)

v0.6.24

Compare Source

Fixes
  • Add back in winnow::Located which was removed by accident

v0.6.23

Compare Source

Compatibility
  • stream::Located is deprecated in favor of stream::LocatingSlice
  • combnator::rest is deprecated in favor of token::rest
  • combnator::rest_len is deprecated in favor of token::rest_len
  • combinator::<Struct> have mostly been deprecated in favor of combinator::impls::<Struct>
  • unpeek is deprecated
Features
  • Added repeat().try_fold() and repeat().verify_fold()

v0.6.22

Compare Source

Fixes
  • Respect is_partial in take_till

v0.6.21

Compare Source

Performance
  • More inlining
Documentation
  • Clarify roles of peek and Parser::parse_peek
  • Provide more context for people coming from nom

v0.6.20

Compare Source

Internal
  • Dependency update

v0.6.19

Compare Source

Features
  • Add Located::reset_to_start for parsing encoded graphs with start-relative pointers

v0.6.18

Compare Source

v0.6.17

Compare Source

Features
  • Make Checkpoints comparable

v0.6.16

Compare Source

v0.6.15

Compare Source

Compatibility
  • Deprecated Parser::recognize in favor of Parser::take
  • Deprecated Parser::with_recognized in favor of Parser::taken
Fixes
  • Renamed Parser::recognize to Parser::take to be consistent with other take parsers
  • Renamed Parser::with_recognized to Parser::with_taken to be consistent with other take parsers

v0.6.14

Compare Source

Fixes
  • Removed unused I: Clone bound on Parser::parse

v0.6.13

Compare Source

Documentation
  • Expand on error reporting

v0.6.12

Compare Source

Fixes
  • Improve compilation errors when using non-parsers with seq! struct syntax

v0.6.11

Compare Source

Fixes
  • Remove AsBytes bounds, unblocking parsing frames of binary input

v0.6.10

Compare Source

Features
  • Extend seq! to constructing enum variants

v0.6.9

Compare Source

Compatibility
  • Bump MSRV to 1.65
Features
  • Add Debug impls for stream::Stateful and stream::Recoverable

v0.6.8

Compare Source

Features
  • Support &mut [impl Parser] within alt

v0.6.7

Compare Source

Fixes
  • Improve debug traces when Input wrapper types are used

v0.6.6

Compare Source

Fixes
  • Add impl ErrorConvert for ContextError so it can be used with bit parsing

v0.6.5

Compare Source

Compatibility
  • Deprecated escaped in favor of take_escaped (rename)
Documentation
  • Fix some bugs in concrete signatures
  • Explain what "Partial version" means
  • When discussing the signature, highlight the most relevant trait for input

v0.6.4

Compare Source

Documentation
  • Provide examples of concrete signatures

v0.6.3

Compare Source

Fixes
  • Make take_until("") consistent between simd or not, with or without empty buffer
Documentation
  • Clarify generic and value parameters
  • Cross reference *until and *till parsers
  • (tutorial) Step through parts more slowly

v0.6.2

Compare Source

Compatibility
  • Deprecate ParserError::from_error_kind in favor of ParserError::from_input
  • Deprecate InputError::new in favor of InputError::at
  • Deprecate ErrorKind
    • If used as an error, consider EmptyError
    • For ParserError::append, just add an #[allow(deprecated)]
Features
  • Add EmptyError which is like () but compatible with Parser::parse
  • Add ParserError::from_input to help with the transition to 0.7
  • Add InputError::at to help with the transition to 0.7

v0.6.1

Compare Source

Features
  • Add Located::reset_to_start for parsing encoded graphs with start-relative pointers

v0.6.0

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title fix(deps): update rust crate winnow to 0.7.0 fix(deps): update rust crate winnow to 0.7.0 - autoclosed May 19, 2025
@renovate renovate bot closed this May 19, 2025
@renovate renovate bot deleted the renovate/winnow-0.x branch May 19, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant