From d5cc9ef11660541017db57aaa62989b6efc7c92e Mon Sep 17 00:00:00 2001 From: Jeremy Fitzhardinge Date: Thu, 23 Feb 2023 09:28:19 -0800 Subject: [PATCH] third-party/rust: remove memmap and migrate to memmap2 Summary: `memmap` is unmaintained and hasn't been changed in over 4 years. `memmap2` is a fork, which is regularly maintained. Also bump dependency on `grep` as it removes the last third-party internal reference to memmap. Reviewed By: dtolnay Differential Revision: D43486158 fbshipit-source-id: f763848bd295facf60ec601620afd68dfc655bea --- reverie/Cargo.toml | 2 +- reverie/src/backtrace/symbols.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reverie/Cargo.toml b/reverie/Cargo.toml index 68be46e..082cf5f 100644 --- a/reverie/Cargo.toml +++ b/reverie/Cargo.toml @@ -17,7 +17,7 @@ gimli = "0.26" lazy_static = "1.4" libc = "0.2.139" linked-hash-map = { version = "0.5", features = ["serde_impl"] } -memmap = "0.7" +memmap2 = "0.5.10" never-say-never = "6" nix = "0.25" object = { version = "0.29", features = ["write"] } diff --git a/reverie/src/backtrace/symbols.rs b/reverie/src/backtrace/symbols.rs index a228f47..41b8714 100644 --- a/reverie/src/backtrace/symbols.rs +++ b/reverie/src/backtrace/symbols.rs @@ -16,7 +16,7 @@ use std::path::PathBuf; use gimli::EndianSlice; use gimli::RunTimeEndian as Endian; -use memmap::Mmap; +use memmap2::Mmap; use object::Object as _; use object::ObjectSegment; use object::SymbolMapName;