Replace the regex highlighting by a simple algorithm

This commit is contained in:
Clément Renault
2020-08-05 13:52:27 +02:00
parent 4873abe145
commit 6508d497ce
3 changed files with 16 additions and 37 deletions

24
Cargo.lock generated
View File

@ -6,15 +6,6 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ccc9a9dd069569f212bc4330af9f17c4afb5e8ce185e83dbb14f1349dda18b10"
[[package]]
name = "aho-corasick"
version = "0.7.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "043164d8ba5c4c3035fec9bbee8647c0261d788f3474306f93bb65901cae0e86"
dependencies = [
"memchr",
]
[[package]]
name = "anyhow"
version = "1.0.31"
@ -997,7 +988,6 @@ dependencies = [
"once_cell",
"oxidized-mtbl",
"rayon",
"regex",
"roaring",
"serde",
"slice-group-by",
@ -1601,10 +1591,7 @@ version = "1.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c3780fcf44b193bc4d09f36d2a3c87b251da4a046c87795a0d35f4f927ad8e6"
dependencies = [
"aho-corasick",
"memchr",
"regex-syntax",
"thread_local 1.0.1",
]
[[package]]
@ -1822,7 +1809,7 @@ dependencies = [
"chrono",
"log 0.4.8",
"termcolor",
"thread_local 0.3.4",
"thread_local",
]
[[package]]
@ -1937,15 +1924,6 @@ dependencies = [
"unreachable",
]
[[package]]
name = "thread_local"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14"
dependencies = [
"lazy_static 1.4.0",
]
[[package]]
name = "time"
version = "0.1.43"