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` --- crates/proc_macro_api/Cargo.toml | 2 +- crates/proc_macro_api/src/version.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') 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