regex v1.2.1 Release Notes
Release Date: 2019-08-03 // over 4 years ago-
๐ This release does a bit of house cleaning. Namely:
- This repository is now using rustfmt.
- ๐ License headers have been removed from all files, in following suit with the Rust project.
- ๐ Teddy has been removed from the
regex
crate, and is now part of theaho-corasick
crate. Seeaho-corasick
's newpacked
sub-module for details. - ๐ The
utf8-ranges
crate has been deprecated, with its functionality moving into theutf8
sub-module ofregex-syntax
. - The
ucd-util
dependency has been dropped, in favor of implementing what little we need inside ofregex-syntax
itself.
In general, this is part of an ongoing (long term) effort to make optimizations in the regex engine easier to reason about. The current code is too convoluted and thus it is very easy to introduce new bugs. This simplification effort is the primary motivation behind re-working the
aho-corasick
crate to not only bundle algorithms like Teddy, but to also provide regex-like match semantics automatically.Moving forward, the plan is to join up with the
bstr
andregex-automata
crates, with the former providing more sophisticated substring search algorithms (thereby deleting existing code inregex
) and the latter providing ahead-of-time compiled DFAs for cases where they are inexpensive to compute.