Skip to content

Update Rust crate regex to 1.13.1#65

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

Update Rust crate regex to 1.13.1#65
oxide-renovate[bot] wants to merge 1 commit into
mainfrom
renovate/regex-1.x

Conversation

@oxide-renovate

@oxide-renovate oxide-renovate Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
regex workspace.dependencies minor 1.12.31.13.1

Release Notes

rust-lang/regex (regex)

v1.13.1

Compare Source

===================
This is a release that fixes a bug where incorrect regex match offsets could be
reported. Note that this doesn't impact whether a match occurs or not, just
where it occurs. The match offsets are still valid for slicing, they just may
not refer to the correct leftmost-first match. See
#​1364 for (many) more details.

Bug fixes:

  • #​1354:
    Fixes previously unsound reverse suffix and inner optimizations.

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.

v1.12.4

Compare Source

===================
This release includes a performance optimization for compilation of regexes
with very large character classes.

Improvements:

  • #​1308:
    Avoid re-canonicalizing the entire interval set when pushing new class ranges.

Configuration

📅 Schedule: (in timezone America/Los_Angeles)

  • Branch creation
    • "after 8pm,before 6am"
  • Automerge
    • "after 8pm,before 6am"

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

@oxide-renovate
oxide-renovate Bot force-pushed the renovate/regex-1.x branch from 4c03116 to f019457 Compare July 10, 2026 04:38
@oxide-renovate oxide-renovate Bot changed the title Update Rust crate regex to 1.12.4 Update Rust crate regex to 1.13.0 Jul 10, 2026
@oxide-renovate
oxide-renovate Bot force-pushed the renovate/regex-1.x branch from f019457 to fb970b9 Compare July 16, 2026 03:54
@oxide-renovate oxide-renovate Bot changed the title Update Rust crate regex to 1.13.0 Update Rust crate regex to 1.13.1 Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants