Skip to content

⬆️ Update Rust crate regex to v1.13.0#246

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/regex-1.x-lockfile
Open

⬆️ Update Rust crate regex to v1.13.0#246
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/regex-1.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
regex dependencies minor 1.12.41.13.0

Release Notes

rust-lang/regex (regex)

v1.13.0

Compare Source

===================
This release includes a new API, a regex! macro, for lazy compilation of
a regex from a string literal. If you use regexes a lot, it's likely you've
already written one exactly like it. The new macro can be used like this:

use regex::regex;

fn is_match(line: &str) -> bool {
    // The regex will be compiled approximately once and reused automatically.
    // This avoids the footgun of using `Regex::new` here, which would
    // guarantee that it would be compiled every time this routine is called.
    // This would likely make this routine much slower than it needs to be.
    regex!(r"bar|baz").is_match(line)
}

let hay = "\
path/to/foo:54:Blue Harvest
path/to/bar:90:Something, Something, Something, Dark Side
path/to/baz:3:It's a Trap!
";

let matches = hay.lines().filter(|line| is_match(line)).count();
assert_eq!(matches, 2);

Improvements:

  • #​709:
    Add a new regex! macro for efficient and automatic reuse of a compiled regex.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.

@renovate renovate Bot added dependencies Upgrade or downgrade of project dependencies. no-stale This issue or PR is exempted from the stable bot. rust labels Jul 9, 2026
@renovate renovate Bot enabled auto-merge (squash) July 9, 2026 16:13
@renovate renovate Bot force-pushed the renovate/regex-1.x-lockfile branch from 66c8bfa to 4e95743 Compare July 9, 2026 19:07
@codspeed-hq

codspeed-hq Bot commented Jul 9, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 16 untouched benchmarks


Comparing renovate/regex-1.x-lockfile (4e95743) with main (e5a3c5d)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (d7b96c7) during the generation of this report, so e5a3c5d was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Upgrade or downgrade of project dependencies. no-stale This issue or PR is exempted from the stable bot. rust

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants