From e5639cf22d138d86b04f1097f42e0f9e13438aa5 Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Mon, 19 Oct 2020 23:59:05 +0530 Subject: [PATCH] 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 --- crates/globset/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/globset/Cargo.toml b/crates/globset/Cargo.toml index 7c99359..d00b124 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]