Releases: kennytm/rand_regex
Releases · kennytm/rand_regex
v0.16.0
v0.15.1
v0.15.0
v0.14.2
Added Regex::is_ascii()
method to check if the regex is ASCII-only.
Added type Encoding
to represent ASCII, UTF-8 or binary encoding.
Added Regex::encoding()
method to return the narrowest string encoding.
Added type EncodedString
to adjoin a byte string with its encoding.
Added an additional impl Distribution<EncodedString> for Regex
.
v0.14.1
v0.14.0
Increased minimal Rust version.
Depends on rand 0.7
and regex_syntax 0.6
. The minimal Rust version is 1.40.
Improved generation algorithm. Sampling performance of regex involving lots of character classes are greatly improved.
Regex | v0.13.1 | v0.14.0 |
---|---|---|
[0-9a-zA-Z]{10,20} |
268 ns | 150 ns |
(?s:.{10}) |
209 ns | 190 ns |