From 27ba1dd8e32eac77f23fd23f4f8685604d3027a2 Mon Sep 17 00:00:00 2001 From: memoryruins Date: Mon, 3 May 2021 20:20:47 -0400 Subject: Replace `memmap` to `memmap2` in `proc_macro_api` --- Cargo.lock | 12 +----------- crates/proc_macro_api/Cargo.toml | 2 +- crates/proc_macro_api/src/version.rs | 2 +- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1cfd704f6..0ca0b7b63 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -902,16 +902,6 @@ version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc" -[[package]] -name = "memmap" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "memmap2" version = "0.2.2" @@ -1174,7 +1164,7 @@ dependencies = [ "crossbeam-channel", "jod-thread", "log", - "memmap", + "memmap2", "object", "profile", "serde", diff --git a/crates/proc_macro_api/Cargo.toml b/crates/proc_macro_api/Cargo.toml index 1ba1e4abd..2ce5eeedd 100644 --- a/crates/proc_macro_api/Cargo.toml +++ b/crates/proc_macro_api/Cargo.toml @@ -15,7 +15,7 @@ serde_json = { version = "1.0", features = ["unbounded_depth"] } log = "0.4.8" crossbeam-channel = "0.5.0" jod-thread = "0.1.1" -memmap = "0.7.0" +memmap2 = "0.2.0" object = { version = "0.23.0", default-features = false, features = ["std", "read_core", "elf", "macho", "pe", "unaligned"] } snap = "1.0" diff --git a/crates/proc_macro_api/src/version.rs b/crates/proc_macro_api/src/version.rs index dcf8fae8f..6dbac50b4 100644 --- a/crates/proc_macro_api/src/version.rs +++ b/crates/proc_macro_api/src/version.rs @@ -6,7 +6,7 @@ use std::{ path::Path, }; -use memmap::Mmap; +use memmap2::Mmap; use object::read::{File as BinaryFile, Object, ObjectSection}; use snap::read::FrameDecoder as SnapDecoder; -- cgit v1.2.3