From 953883ca546ac0c860d171de26baf1121226091c Mon Sep 17 00:00:00 2001 From: kjeremy Date: Tue, 2 Feb 2021 10:25:17 -0500 Subject: Use non-deprecated memmap2 crate `cargo audit` complains that `memmap` is unmaintained so switch to RazrFalcon's maintained version. Removes yet another edge on winapi --- crates/proc_macro_srv/Cargo.toml | 2 +- crates/proc_macro_srv/src/dylib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/proc_macro_srv') diff --git a/crates/proc_macro_srv/Cargo.toml b/crates/proc_macro_srv/Cargo.toml index 83f9ead17..208489e0d 100644 --- a/crates/proc_macro_srv/Cargo.toml +++ b/crates/proc_macro_srv/Cargo.toml @@ -12,7 +12,7 @@ doctest = false [dependencies] object = { version = "0.23", default-features = false, features = ["std", "read_core", "elf", "macho", "pe"] } libloading = "0.6.0" -memmap = "0.7" +memmap2 = "0.2.0" tt = { path = "../tt", version = "0.0.0" } mbe = { path = "../mbe", version = "0.0.0" } diff --git a/crates/proc_macro_srv/src/dylib.rs b/crates/proc_macro_srv/src/dylib.rs index 4e719f3aa..00fcc7bdf 100644 --- a/crates/proc_macro_srv/src/dylib.rs +++ b/crates/proc_macro_srv/src/dylib.rs @@ -7,7 +7,7 @@ use std::{ }; use libloading::Library; -use memmap::Mmap; +use memmap2::Mmap; use object::Object; use proc_macro_api::ProcMacroKind; -- cgit v1.2.3