Skip to content

Commit

Permalink
Enable selection of regex crate features
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrubeck committed Feb 15, 2022
1 parent 8a5de56 commit be6ba8f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,22 @@ documentation = "https://docs.rs/fancy-regex"
categories = ["text-processing"]

[features]
default = ["unicode", "perf"]
# Enable #[track_caller] in unit tests.
track_caller = []
perf = ["regex/perf"]
perf-dfa = ["regex/perf-dfa"]
perf-inline = ["regex/perf-inline"]
perf-literal = ["regex/perf-literal"]
perf-cache = ["regex/perf-cache"]
unicode = ["regex/unicode"]

[dependencies.regex]
version = "1.3" # when we go to >= 1.3.8, we can get rid of the `contains_empty` workaround, see https://github.com/rust-lang/regex/blob/master/CHANGELOG.md#138-2020-05-28
default-features = false
features = ["std"]

[dependencies]
regex = "1.2" # when we go to >= 1.3.8, we can get rid of the `contains_empty` workaround, see https://github.com/rust-lang/regex/blob/master/CHANGELOG.md#138-2020-05-28
bit-set = "0.5"

[dev-dependencies]
Expand Down

0 comments on commit be6ba8f

Please sign in to comment.