Skip to content

Commit

Permalink
Merge #614
Browse files Browse the repository at this point in the history
614: Bump regex from 1.8.1 to 1.9.1 r=jonasbb a=dependabot[bot]

Bumps [regex](https://github.com/rust-lang/regex) from 1.8.1 to 1.9.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rust-lang/regex/blob/master/CHANGELOG.md">regex's changelog</a>.</em></p>
<blockquote>
<h1>1.9.1 (2023-07-07)</h1>
<p>This is a patch release which fixes a memory usage regression. In the regex
1.9 release, one of the internal engines used a more aggressive allocation
strategy than what was done previously. This patch release reverts to the
prior on-demand strategy.</p>
<p>Bug fixes:</p>
<ul>
<li>[BUG <a href="https://redirect.github.com/rust-lang/regex/issues/1027">#1027</a>](<a href="https://redirect.github.com/rust-lang/regex/issues/1027">rust-lang/regex#1027</a>):
Change the allocation strategy for the backtracker to be less aggressive.</li>
</ul>
<h1>1.9.0 (2023-07-05)</h1>
<p>This release marks the end of a <a href="https://redirect.github.com/rust-lang/regex/issues/656">years long rewrite of the regex crate
internals</a>. Since this is
such a big release, please report any issues or regressions you find. We would
also love to hear about improvements as well.</p>
<p>In addition to many internal improvements that should hopefully result in
&quot;my regex searches are faster,&quot; there have also been a few API additions:</p>
<ul>
<li>A new <code>Captures::extract</code> method for quickly accessing the substrings
that match each capture group in a regex.</li>
<li>A new inline flag, <code>R</code>, which enables CRLF mode. This makes <code>.</code> match any
Unicode scalar value except for <code>\r</code> and <code>\n</code>, and also makes <code>(?m:^)</code> and
<code>(?m:$)</code> match after and before both <code>\r</code> and <code>\n</code>, respectively, but never
between a <code>\r</code> and <code>\n</code>.</li>
<li><code>RegexBuilder::line_terminator</code> was added to further customize the line
terminator used by <code>(?m:^)</code> and <code>(?m:$)</code> to be any arbitrary byte.</li>
<li>The <code>std</code> Cargo feature is now actually optional. That is, the <code>regex</code> crate
can be used without the standard library.</li>
<li>Because <code>regex 1.9</code> may make binary size and compile times even worse, a
new experimental crate called <code>regex-lite</code> has been published. It prioritizes
binary size and compile times over functionality (like Unicode) and
performance. It shares no code with the <code>regex</code> crate.</li>
</ul>
<p>New features:</p>
<ul>
<li>[FEATURE <a href="https://redirect.github.com/rust-lang/regex/issues/244">#244</a>](<a href="https://redirect.github.com/rust-lang/regex/issues/244">rust-lang/regex#244</a>):
One can opt into CRLF mode via the <code>R</code> flag.
e.g., <code>(?mR:$)</code> matches just before <code>\r\n</code>.</li>
<li>[FEATURE <a href="https://redirect.github.com/rust-lang/regex/issues/259">#259</a>](<a href="https://redirect.github.com/rust-lang/regex/issues/259">rust-lang/regex#259</a>):
Multi-pattern searches with offsets can be done with <code>regex-automata 0.3</code>.</li>
<li>[FEATURE <a href="https://redirect.github.com/rust-lang/regex/issues/476">#476</a>](<a href="https://redirect.github.com/rust-lang/regex/issues/476">rust-lang/regex#476</a>):
<code>std</code> is now an optional feature. <code>regex</code> may be used with only <code>alloc</code>.</li>
<li>[FEATURE <a href="https://redirect.github.com/rust-lang/regex/issues/644">#644</a>](<a href="https://redirect.github.com/rust-lang/regex/issues/644">rust-lang/regex#644</a>):
<code>RegexBuilder::line_terminator</code> configures how <code>(?m:^)</code> and <code>(?m:$)</code> behave.</li>
<li>[FEATURE <a href="https://redirect.github.com/rust-lang/regex/issues/675">#675</a>](<a href="https://redirect.github.com/rust-lang/regex/issues/675">rust-lang/regex#675</a>):</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/rust-lang/regex/commit/a47e2455ff29ab4c765c0716a484c75f226b5c5a"><code>a47e245</code></a> 1.9.1</li>
<li><a href="https://github.com/rust-lang/regex/commit/4136a1b850e9634b4494f48fa971328b0b058850"><code>4136a1b</code></a> deps: bump regex-automata to 0.3.1</li>
<li><a href="https://github.com/rust-lang/regex/commit/bd87969357cf309641e3296d603328672075ea19"><code>bd87969</code></a> regex-automata-0.3.1</li>
<li><a href="https://github.com/rust-lang/regex/commit/663fc54707454c5f99f889e445ea798bd314c52d"><code>663fc54</code></a> changelog: 1.9.1</li>
<li><a href="https://github.com/rust-lang/regex/commit/4e89cbf607c761d47f5285133fe791d284d3d313"><code>4e89cbf</code></a> automata/nfa/backtrack: fix memory usage</li>
<li><a href="https://github.com/rust-lang/regex/commit/c51486d9f102bdf4ecb657a437c164fd7f425096"><code>c51486d</code></a> fuzz: tweak limits</li>
<li><a href="https://github.com/rust-lang/regex/commit/54690c2dbc108f4df9ad8b1c94a712e65da37d11"><code>54690c2</code></a> doc: fix typos</li>
<li><a href="https://github.com/rust-lang/regex/commit/7c3463d57f35c08da9f4506297f5e26249547a04"><code>7c3463d</code></a> regex-cli: update compile-test and add recent measurements</li>
<li><a href="https://github.com/rust-lang/regex/commit/53786ce79766444a351539a6c1471edd03748feb"><code>53786ce</code></a> regex-cli-0.1.0</li>
<li><a href="https://github.com/rust-lang/regex/commit/a40b1e5380a26bf08ee15cffd3db9a91611ac20e"><code>a40b1e5</code></a> regex-cli: make it publishable</li>
<li>Additional commits viewable in <a href="https://github.com/rust-lang/regex/compare/1.8.1...1.9.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=regex&package-manager=cargo&previous-version=1.8.1&new-version=1.9.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
bors[bot] and dependabot[bot] authored Jul 9, 2023
2 parents 1f9f9ef + 70ca8f9 commit 9e1c3eb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
31 changes: 27 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion serde_with/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fnv = "1.0.6"
glob = "0.3.0"
mime = "0.3.16"
pretty_assertions = "1.4.0"
regex = {version = "1.8.1", default-features = false, features = ["std"]}
regex = {version = "1.9.1", default-features = false, features = ["std"]}
rmp-serde = "1.1.0"
ron = "0.8"
rustversion = "1.0.0"
Expand Down

0 comments on commit 9e1c3eb

Please sign in to comment.