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

chore(deps): update rust crate nom to v8 #86

Merged
merged 3 commits into from
Jan 27, 2025
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 26, 2025

This PR contains the following updates:

Package Type Update Change
nom workspace.dependencies major 7.1 -> 8.0

Release Notes

rust-bakery/nom (nom)

v8.0.0

Compare Source

This versions represents a significant refactoring of nom to reduce the amount of code generated by prsers, and reduce the API surface. As such, it comes with some breaking changes, mostly around the move from closure based combinators to trait based ones. In practice, it means that instead of writing combinator(arg)(input), we now write combinator(arg).parse(input).

This release also marks th introduction of the nom-language crate, which will hold tools more focused on language parsing than the rest of nom, like the VerboseError type and the newly added precedence parsing combinators.

Thanks
Added
  • Parser::map_res
  • Parser::map_opt
  • many and fold combinators using ranges
  • many can collect into other types than Vec
  • Error and VerboseError can be converted to owned versions
Removed
  • nom::bits::* is no longer re-exported at the crate root. This export caused frequent confusion, since e.g. nom::complete::tag referred to nom::bits::complete::tag instead of the much more commonly used nom::bytes::complete::tag. To migrate, change any imports of nom::{complete::*, streaming::*, bits, bytes} to nom::bits::[...].
  • parse combinator
  • InputIter, InputTakeAtPosition, InputLength, InputTake and Slice are now merged in the Input trait
Changed
  • Parser::map and Parser::flat_map now take a FnMut as argument

Configuration

📅 Schedule: Branch creation - "on monday" in timezone Asia/Shanghai, Automerge - "on monday" in timezone Asia/Shanghai.

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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.

Copy link
Contributor Author

renovate bot commented Jan 26, 2025

Branch automerge failure

This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.


  • Branch has one or more failed status checks

@renovate renovate bot enabled auto-merge (squash) January 26, 2025 20:49
@renovate renovate bot merged commit 11839a1 into main Jan 27, 2025
17 checks passed
Copy link

codecov bot commented Jan 27, 2025

Codecov Report

Attention: Patch coverage is 98.57143% with 1 line in your changes missing coverage. Please review.

Project coverage is 98.18%. Comparing base (f195599) to head (1308c37).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/parser.rs 98.57% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #86   +/-   ##
=======================================
  Coverage   98.17%   98.18%           
=======================================
  Files          48       48           
  Lines        2189     2198    +9     
=======================================
+ Hits         2149     2158    +9     
  Misses         40       40           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot deleted the renovate/major-rust-crates branch January 27, 2025 03:23
Copy link

codspeed-hq bot commented Jan 27, 2025

CodSpeed Performance Report

Merging #86 will not alter performance

Comparing renovate/major-rust-crates (1308c37) with main (d145f2c)

Summary

✅ 6 untouched benchmarks

@oxc-bot oxc-bot mentioned this pull request Jan 27, 2025
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