Update peg requirement from ~0.7 to ~0.8 #311

Merged
dependabot[bot] merged 3 commits from dependabot/cargo/peg-approx-0.8 into master 2023-11-25 16:00:29 +00:00
dependabot[bot] commented 2022-05-03 17:30:41 +00:00 (Migrated from github.com)

Updates the requirements on peg to permit the latest version.

Release notes

Sourced from peg's releases.

0.8.0

New Features

  • #[cache_left_rec] annotation to allow left recursion (#266)
  • Return matched token/character from [ ] pattern expression (#234)

Fixes

  • Fix Rust grammar for arguments (#261) and type bounds (#279)
  • Fix trace feature when using infix!{} (#277)
  • Fix #[cache] with grammar lifetime parameters
  • Allow clippy::redundant_closure_call lint in generated grammar (#258)

Breaking changes

Most users will not require changes to upgrade from 0.7 to 0.8; these only affect advanced use cases.

  • Allow only lifetime, not type, parameters at the grammar level. (type parameters were never properly supported)
  • Add 'input lifetime parameter to ParseElem trait so implementations can return tokens by reference. (#268)
  • Require Copy on ParseElem::Element to better represent the expectation that they are cheap to copy/move.

Contributors: @​kevinmehall @​zsol @​neunenak @​fgasperij

Commits
  • 40a0049 v0.8.0
  • cd3044a Make [] pattern syntax return the matched token/character
  • 6838d5d Require ParseElem::Element: Copy
  • f09fc34 Add 'input lifetime parameter to ParseElem
  • ad7561d Document rule parameters
  • 4b7dcaa Expand Rust type and type param grammar
  • cdeb247 Test with --trace in GitHub Actions
  • 39edc8b Fix #275 change that broke tracing when rule return type is not Copy
  • f05f348 Fix trace code in infix!{} for change to mixed_site hygiene
  • 73e5579 Merge pull request #275 from neunenak/refactors
  • Additional commits viewable in compare view

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 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)
Updates the requirements on [peg](https://github.com/kevinmehall/rust-peg) to permit the latest version. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/kevinmehall/rust-peg/releases">peg's releases</a>.</em></p> <blockquote> <h2>0.8.0</h2> <h3>New Features</h3> <ul> <li><code>#[cache_left_rec]</code> annotation to allow left recursion (<a href="https://github-redirect.dependabot.com/kevinmehall/rust-peg/issues/266">#266</a>)</li> <li>Return matched token/character from <code>[ ]</code> pattern expression (<a href="https://github-redirect.dependabot.com/kevinmehall/rust-peg/issues/234">#234</a>)</li> </ul> <h3>Fixes</h3> <ul> <li>Fix Rust grammar for arguments (<a href="https://github-redirect.dependabot.com/kevinmehall/rust-peg/issues/261">#261</a>) and type bounds (<a href="https://github-redirect.dependabot.com/kevinmehall/rust-peg/issues/279">#279</a>)</li> <li>Fix <code>trace</code> feature when using <code>infix!{}</code> (<a href="https://github-redirect.dependabot.com/kevinmehall/rust-peg/issues/277">#277</a>)</li> <li>Fix <code>#[cache]</code> with grammar lifetime parameters</li> <li>Allow <code>clippy::redundant_closure_call</code> lint in generated grammar (<a href="https://github-redirect.dependabot.com/kevinmehall/rust-peg/issues/258">#258</a>)</li> </ul> <h3>Breaking changes</h3> <p>Most users will not require changes to upgrade from 0.7 to 0.8; these only affect advanced use cases.</p> <ul> <li>Allow only lifetime, not type, parameters at the grammar level. (type parameters were never properly supported)</li> <li>Add <code>'input</code> lifetime parameter to <code>ParseElem</code> trait so implementations can return tokens by reference. (<a href="https://github-redirect.dependabot.com/kevinmehall/rust-peg/issues/268">#268</a>)</li> <li>Require <code>Copy</code> on <code>ParseElem::Element</code> to better represent the expectation that they are cheap to copy/move.</li> </ul> <hr /> <p>Contributors: <a href="https://github.com/kevinmehall"><code>@​kevinmehall</code></a> <a href="https://github.com/zsol"><code>@​zsol</code></a> <a href="https://github.com/neunenak"><code>@​neunenak</code></a> <a href="https://github.com/fgasperij"><code>@​fgasperij</code></a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/kevinmehall/rust-peg/commit/40a00493e1cbcf71118dd2643b8f03d1dae30fe5"><code>40a0049</code></a> v0.8.0</li> <li><a href="https://github.com/kevinmehall/rust-peg/commit/cd3044a8db89f35a33a26aeaac05d18e7cbd3cc5"><code>cd3044a</code></a> Make <code>[]</code> pattern syntax return the matched token/character</li> <li><a href="https://github.com/kevinmehall/rust-peg/commit/6838d5dd21f37169d200959d0d5efe9945067d89"><code>6838d5d</code></a> Require ParseElem::Element: Copy</li> <li><a href="https://github.com/kevinmehall/rust-peg/commit/f09fc34cff8e706f80a1d624d8fd08d56226bbc8"><code>f09fc34</code></a> Add 'input lifetime parameter to ParseElem</li> <li><a href="https://github.com/kevinmehall/rust-peg/commit/ad7561d7f461e1fdbcf501a04e487986686d8883"><code>ad7561d</code></a> Document rule parameters</li> <li><a href="https://github.com/kevinmehall/rust-peg/commit/4b7dcaa5da14f9326257e6d7429e95127fd4661b"><code>4b7dcaa</code></a> Expand Rust type and type param grammar</li> <li><a href="https://github.com/kevinmehall/rust-peg/commit/cdeb247928b2a9490e2de8c1eed0988b732a25a5"><code>cdeb247</code></a> Test with --trace in GitHub Actions</li> <li><a href="https://github.com/kevinmehall/rust-peg/commit/39edc8b959552f446a0f7ece246761ff83d769ff"><code>39edc8b</code></a> Fix <a href="https://github-redirect.dependabot.com/kevinmehall/rust-peg/issues/275">#275</a> change that broke tracing when rule return type is not Copy</li> <li><a href="https://github.com/kevinmehall/rust-peg/commit/f05f3487d041f3a44c65bb9b630fd2b41a4aedae"><code>f05f348</code></a> Fix trace code in <code>infix!{}</code> for change to mixed_site hygiene</li> <li><a href="https://github.com/kevinmehall/rust-peg/commit/73e55798003f65941bce81b39ab1d43bab4dd6f0"><code>73e5579</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/kevinmehall/rust-peg/issues/275">#275</a> from neunenak/refactors</li> <li>Additional commits viewable in <a href="https://github.com/kevinmehall/rust-peg/compare/0.7.0...0.8.0">compare view</a></li> </ul> </details> <br /> 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 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) </details>
dependabot[bot] commented 2022-09-26 09:39:49 +00:00 (Migrated from github.com)

A newer version of peg exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

A newer version of peg exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.
greg added 1 commit 2023-11-25 16:00:10 +00:00
greg merged commit 216f078d44 into master 2023-11-25 16:00:29 +00:00
greg deleted branch dependabot/cargo/peg-approx-0.8 2023-11-25 16:00:29 +00:00
Sign in to join this conversation.
No description provided.