summaryrefslogtreecommitdiffstats
path: root/Cargo.lock
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2019-01-20 12:32:09 -0500
committerAndrew Gallant <jamslam@gmail.com>2019-01-20 12:32:09 -0500
commit4b88e08f418d4c24223879a727efa5ad0c3c9058 (patch)
tree213f92d921b28d3d1841742085810005b9cf7bfd /Cargo.lock
parent7cbc535d70a53c81dfa3e58552c01f21c2e38d28 (diff)
search: migrate to bstrag/bstr-migration
This is an initial attempt at migrating grep-searcher to use the new bstr crate (not yet published). This is mostly an improvement, although a significant problem is that the grep-matcher crate controls the `Index` impls for the `Match` type, which we use quite heavily. Thus, in order to impl `Index` for `BStr`, we need add bstr as a public dependency to grep-matcher. This is really bad news because grep-matcher is supposed to be a light-weight core crate that defines a matcher interface, which is itself intended to be a public dependency. Thus, a semver bump on bstr will have very undesirable ripple effects thoughout ripgrep's library crates. This would be something we could stomach if bstr was solid at 1.0 and committed to avoiding breaking changes. But it's not there yet.
Diffstat (limited to 'Cargo.lock')
-rw-r--r--Cargo.lock11
1 files changed, 9 insertions, 2 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 8f8965d3..20447b8b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -35,6 +35,13 @@ version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
+name = "bstr"
+version = "0.0.1"
+dependencies = [
+ "memchr 2.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
+]
+
+[[package]]
name = "bytecount"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -180,7 +187,7 @@ dependencies = [
name = "grep-matcher"
version = "0.1.1"
dependencies = [
- "memchr 2.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
+ "bstr 0.0.1",
"regex 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
@@ -222,13 +229,13 @@ dependencies = [
name = "grep-searcher"
version = "0.1.1"
dependencies = [
+ "bstr 0.0.1",
"bytecount 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
"encoding_rs 0.8.14 (registry+https://github.com/rust-lang/crates.io-index)",
"encoding_rs_io 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"grep-matcher 0.1.1",
"grep-regex 0.1.1",
"log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
- "memchr 2.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"memmap 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
]