mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-07-31 04:02:00 -07:00
deps: initial migration steps to regex 1.9
This leaves the grep-regex crate in tatters. Pretty much the entire thing needs to be re-worked. The upshot is that it should result in some big simplifications. I hope. The idea here is to drop down and actually use regex-automata 0.3 instead of the regex crate itself.
This commit is contained in:
@@ -20,11 +20,11 @@ name = "globset"
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
aho-corasick = "0.7.3"
|
||||
bstr = { version = "1.1.0", default-features = false, features = ["std"] }
|
||||
aho-corasick = "1.0.2"
|
||||
bstr = { version = "1.5.0", default-features = false, features = ["std"] }
|
||||
fnv = "1.0.6"
|
||||
log = { version = "0.4.5", optional = true }
|
||||
regex = { version = "1.1.5", default-features = false, features = ["perf", "std"] }
|
||||
regex = { version = "1.8.3", default-features = false, features = ["perf", "std"] }
|
||||
serde = { version = "1.0.104", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
|
@@ -818,7 +818,7 @@ impl MultiStrategyBuilder {
|
||||
|
||||
fn prefix(self) -> PrefixStrategy {
|
||||
PrefixStrategy {
|
||||
matcher: AhoCorasick::new_auto_configured(&self.literals),
|
||||
matcher: AhoCorasick::new(&self.literals).unwrap(),
|
||||
map: self.map,
|
||||
longest: self.longest,
|
||||
}
|
||||
@@ -826,7 +826,7 @@ impl MultiStrategyBuilder {
|
||||
|
||||
fn suffix(self) -> SuffixStrategy {
|
||||
SuffixStrategy {
|
||||
matcher: AhoCorasick::new_auto_configured(&self.literals),
|
||||
matcher: AhoCorasick::new(&self.literals).unwrap(),
|
||||
map: self.map,
|
||||
longest: self.longest,
|
||||
}
|
||||
|
Reference in New Issue
Block a user