From 3a1780d8417e24eb7031ddd07c353e89c3f4d958 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sun, 17 Jan 2021 18:49:51 -0500 Subject: [PATCH] deps: replace memmap with memmap2 memmap is unmaintained at this point and it is being flagged as a RUSTSEC advisory in ripgrep. This doesn't seem like that big of a deal to me honestly, but memmap2 looks like a fine choice at this point. Fixes #1785, Closes #1786 --- Cargo.lock | 9 ++++----- crates/searcher/Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index dae095b..9684657 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -258,7 +258,7 @@ dependencies = [ "grep-matcher", "grep-regex", "log", - "memmap", + "memmap2", "regex", ] @@ -358,13 +358,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" [[package]] -name = "memmap" -version = "0.7.0" +name = "memmap2" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b" +checksum = "e73be3b7d04a0123e933fea1d50d126cc7196bbc0362c0ce426694f777194eee" dependencies = [ "libc", - "winapi", ] [[package]] diff --git a/crates/searcher/Cargo.toml b/crates/searcher/Cargo.toml index f4e3c73..5744838 100644 --- a/crates/searcher/Cargo.toml +++ b/crates/searcher/Cargo.toml @@ -19,7 +19,7 @@ encoding_rs = "0.8.14" encoding_rs_io = "0.1.6" grep-matcher = { version = "0.1.2", path = "../matcher" } log = "0.4.5" -memmap = "0.7" +memmap = { package = "memmap2", version = "0.2.0" } [dev-dependencies] grep-regex = { version = "0.1.3", path = "../regex" }