mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2024-12-12 19:18:24 +02:00
cd8ec38a68
Previously, ripgrep would always defer to the regex engine's capturing matches in order to implement word matching. Namely, ripgrep would determine the correct match offsets via a capturing group, since the word regex is itself generated from the user supplied regex. Unfortunately, the regex engine's capturing mode is still fairly slow, so this commit adds a fast path to avoid capturing mode in the vast majority of cases. See comments in the code for details.
23 lines
620 B
TOML
23 lines
620 B
TOML
[package]
|
|
name = "grep-regex"
|
|
version = "0.1.5" #:version
|
|
authors = ["Andrew Gallant <jamslam@gmail.com>"]
|
|
description = """
|
|
Use Rust's regex library with the 'grep' crate.
|
|
"""
|
|
documentation = "https://docs.rs/grep-regex"
|
|
homepage = "https://github.com/BurntSushi/ripgrep"
|
|
repository = "https://github.com/BurntSushi/ripgrep"
|
|
readme = "README.md"
|
|
keywords = ["regex", "grep", "search", "pattern", "line"]
|
|
license = "Unlicense/MIT"
|
|
|
|
[dependencies]
|
|
aho-corasick = "0.7.3"
|
|
bstr = "0.2.10"
|
|
grep-matcher = { version = "0.1.2", path = "../grep-matcher" }
|
|
log = "0.4.5"
|
|
regex = "1.1"
|
|
regex-syntax = "0.6.5"
|
|
thread_local = "1"
|