diff options
author | Ajeet D'Souza <98ajeet@gmail.com> | 2020-10-19 23:59:05 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-19 14:29:05 -0400 |
commit | e5639cf22d138d86b04f1097f42e0f9e13438aa5 (patch) | |
tree | 3c6ab8ec04c83a3587100749dc5c114c1cbc15bc | |
parent | 86c843a44bc70b377c724a2bf9a6251da1f5f5b9 (diff) |
globset: remove regex unicode dependency
Since the translation from a glob to a regex always
disables Unicode in the regex, it follows that we shouldn't
need regex's Unicode features enabled.
Now, ripgrep enables Unicode features in its regex
dependency and of course uses them, which will cause
globset to have it enabled in the ripgrep build as well. So
this doesn't actually change anything for ripgrep. But this
does slim thing downs for folks using globset independently
of ripgrep.
PR #1712
-rw-r--r-- | crates/globset/Cargo.toml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/globset/Cargo.toml b/crates/globset/Cargo.toml index 7c993591..d00b124f 100644 --- a/crates/globset/Cargo.toml +++ b/crates/globset/Cargo.toml @@ -23,7 +23,7 @@ aho-corasick = "0.7.3" bstr = { version = "0.2.0", default-features = false, features = ["std"] } fnv = "1.0.6" log = "0.4.5" -regex = "1.1.5" +regex = { version = "1.1.5", default-features = false, features = ["perf", "std"] } serde = { version = "1.0.104", optional = true } [dev-dependencies] |