1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-01-19 05:49:14 +02:00

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
This commit is contained in:
Andrew Gallant 2021-01-17 18:49:51 -05:00
parent a6d05475fb
commit 3a1780d841
No known key found for this signature in database
GPG Key ID: B2E3A4923F8B0D44
2 changed files with 5 additions and 6 deletions

9
Cargo.lock generated
View File

@ -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]]

View File

@ -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" }