Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump winnow from 0.6.21 to 0.7.0 #168

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 1, 2025

Bumps winnow from 0.6.21 to 0.7.0.

Changelog

Sourced from winnow's changelog.

[0.7.0] - 2025-01-30

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

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Feb 1, 2025
Bumps [winnow](https://github.com/winnow-rs/winnow) from 0.6.21 to 0.7.0.
- [Changelog](https://github.com/winnow-rs/winnow/blob/main/CHANGELOG.md)
- [Commits](winnow-rs/winnow@v0.6.21...v0.7.0)

---
updated-dependencies:
- dependency-name: winnow
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/cargo/winnow-0.7.0 branch from c5030f4 to e1e87df Compare February 1, 2025 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants