Skip to content

Commit 5801227

Browse files
committed
Version = 0.16.0. Upgrade all dependencies. Set MSRV = 1.71.1.
1 parent 3acc17f commit 5801227

File tree

5 files changed

+194
-141
lines changed

5 files changed

+194
-141
lines changed

.github/workflows/rust.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: true
1818
matrix:
19-
rustc: [1.40.0, stable] # MSVR and current stable rustc
19+
rustc: [1.71.1, stable] # MSVR and current stable rustc
2020
steps:
2121
- uses: actions/checkout@v2
2222
- uses: actions-rs/toolchain@v1
@@ -72,4 +72,5 @@ jobs:
7272
- name: Run cargo clippy
7373
uses: actions-rs/clippy-check@v1
7474
with:
75+
token: ${{ secrets.GITHUB_TOKEN }}
7576
args: --all-features

Cargo.toml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
[package]
22
name = "rand_regex"
3-
version = "0.15.1"
3+
version = "0.16.0"
44
authors = ["kennytm <kennytm@gmail.com>"]
55
description = "Generates random strings and byte strings matching a regex"
66
repository = "https://github.com/kennytm/rand_regex"
77
readme = "README.md"
88
keywords = ["regex", "random", "generator"]
99
categories = ["algorithms", "text-processing"]
1010
license = "MIT"
11-
edition = "2018"
11+
edition = "2021"
12+
rust-version = "1.71.1"
1213

1314
[badges]
1415
travis-ci = { repository = "kennytm/rand_regex", branch = "master" }
@@ -26,14 +27,14 @@ harness = false
2627

2728
[dependencies]
2829
rand = { version = "0.8", default-features = false }
29-
regex-syntax = { version = "0.6", default-features = false }
30+
regex-syntax = { version = "0.7.4", default-features = false, features = ["std"] }
3031

3132
[dev-dependencies]
3233
rand = "0.8"
33-
regex = { version = "1.3", default-features = false, features = ["std", "unicode"] }
34+
regex = { version = "1.9", default-features = false, features = ["std", "unicode"] }
3435
rand_xorshift = "0.3"
3536
rand_distr = "0.4"
36-
criterion = "0.3"
37+
criterion = "0.5"
3738

3839
[profile.bench]
3940
debug = 2

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ let samples = (&mut rng).sample_iter(&gen).take(3).collect::<Vec<String>>();
2323

2424
// all Unicode characters are included when sampling
2525
assert_eq!(samples, vec![
26-
"᱃៧७᧗-꤂႔-૪۰".to_string(),
27-
"𝟽٩𑃶᱒-៤꣖-൭᧓".to_string(),
28-
"𑃰꩗१௭-9၅-६௫".to_string(),
26+
"꘥᥉১᪕-꧷៩-୦۱".to_string(),
27+
"𞋴۰𑋸꣕-᥆꧰-෮᪑".to_string(),
28+
"𑋲𐒥४౫-9႙-९౨".to_string()
2929
]);
3030

3131
// you could use `regex_syntax::Hir` to include more options

benches/benchmark.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use criterion::{criterion_group, criterion_main, Bencher, Criterion};
2-
use rand::distributions::{Distribution, Standard, Uniform};
3-
use rand::{Rng, SeedableRng};
2+
use rand::{
3+
distributions::{Distribution, Standard, Uniform},
4+
Rng, SeedableRng,
5+
};
46
use rand_distr::Alphanumeric;
57
use rand_regex::Regex;
68
use rand_xorshift::XorShiftRng;

0 commit comments

Comments
 (0)