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 yap to 0.12 - autoclosed #50

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 1, 2023

Mend Renovate logo banner

This PR contains the following updates:

Package Type Update Change
yap dependencies minor 0.11 -> 0.12

Release Notes

jsdw/yap (yap)

v0.12.0

Compare Source

From #​13:

  • Add Tokens::parse method, which attempt to parse the remaining tokens into some type via
    FromStr (and str::parse). This requires a buffer type (often String) to be provided as
    the second generic arg, and may use this to buffer tokens prior to parsing if necessary.
  • Add some helper functions which allow Tokens::parse to be optimised in cases like StrToken,
    so that eg calling toks.slice(from, to).parse::<u16,String> for StrTokens and similar won't
    allocate.
  • Add Tokens::take for taking n tokens (can be useful in conjunction with parse, above).
  • Add Tokens::eof, Tokens::collect and Tokens::consume for finding an EOF (None), collecting
    tokens and consuming all tokens.
  • Add Tokens::into_iter, for when you need to work around lifetime issues with Tokens::as_iter.
  • Rename Tokens::tokens_while to Tokens::take_while, and Tokens::skip_tokens_while to
    Tokens::skip_while; we no longer have to worry about conflicts with Iterator methods.
  • Tokens::{surrounded, optional, optional_err} now accept an FnOnce instead of an FnMut,
    allowing a little more flexibility in what is given.
  • Anything which returned something implementing Iterator now returns something implementing
    Tokens instead (you can still call .as_iter() to then get a standard Iterator from this).

A shoutout to @​EasyOakland for their contributions in this!

From #​13:

  • Add yap::chars module which contains some helper functions (like parse_f64)
    specific to impl Tokens<Item=char>.
  • Generalise yap::one_of! and Tokens::optional; the output from expressions passed to
    either of these can now be Option<T> or bool, or more specifically anything implementing
    yap::one_of::IsMatch.

Configuration

📅 Schedule: Branch creation - "before 5am on the first day of the month" (UTC), 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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title chore(deps): update rust crate yap to 0.12 chore(deps): update rust crate yap to 0.12 - autoclosed Dec 1, 2023
@renovate renovate bot closed this Dec 1, 2023
@renovate renovate bot deleted the renovate/yap-0.x branch December 1, 2023 16:27
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.

0 participants