All user visible changes to this project will be documented in this file. This project adheres to Semantic Versioning, as described for Rust libraries in RFC #1105
- Updated
onig
to6.4
.
- Minimum Rust version is
1.56
, Rust Edition switched to 2021. - (breaking) Renamed
Grok::with_patterns()
toGrok::with_default_patterns()
. - (breaking) Renamed
Grok::insert_definition
toGrok::add_pattern
to stop mixing "definition" with "pattern". - (breaking)
Matches::iter()
is now only returning the matches and not also the other patters with an empty string as the value. - Added
IntoIter
for&Matches
for more convenient match iteration (i.e. for loop). - Added
Pattern::capture_names
which returns the names the compiled pattern captures. - Updated
onig
to6.3
. master
branch is now calledmain
.
- Updated
onig
to6.1
. - Allow to inspect the default built patterns. Thanks @magodo!
- Use the non_exhaustive attribute on
Error
as suggested by clippy.
- Use
Regex::foreach_names
instead ofRegex::capture_names
to work on 32 bit platforms. Thanks @a-rodin!
- Updated
onig
to5.0
. - Use
Regex::foreach_names
instead ofRegex::capture_names
to work on 32 bit platforms. Thanks @a-rodin!
- Updated
onig
to4.3
.
- Updated
onig
to3.1
.
- Fixed a bug where the named pattern on compilation is also accessible from the iterator.
- Allow to specify named patterns when compiling, without inserting the definition beforehand.
regex
has been switched toonig
so we have full compatibility with all the other grok patterns.- Added
Grok::with_patterns()
which loads all the default patterns.Grok::defalt()
also uses that now. iter()
is available onMatches
which yields a(&str, &str)
kv pair of match/result.
- Instead of panicing, all methods that could return a
Result<T, grok::Error>
. Grok::new()
has been renamed toGrok::empty()
(orGrok::default()
)is_empty()
is available in theMatches
API to check if there are matches at all.len()
is available in theMatches
API to get the total number of matches.
- Initial Release