7522: Use non-deprecated memmap2 crate r=kjeremy a=kjeremy

`cargo audit` complains that `memmap` is unmaintained so switch to
RazrFalcon's maintained version.

Removes yet another edge on winapi

Co-authored-by: kjeremy <kjeremy@gmail.com>
This commit is contained in:
bors[bot] 2021-02-02 15:27:01 +00:00 committed by GitHub
commit 042e07d891
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 7 deletions

9
Cargo.lock generated
View file

@ -887,13 +887,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525"
[[package]] [[package]]
name = "memmap" name = "memmap2"
version = "0.7.0" version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b" checksum = "e73be3b7d04a0123e933fea1d50d126cc7196bbc0362c0ce426694f777194eee"
dependencies = [ dependencies = [
"libc", "libc",
"winapi",
] ]
[[package]] [[package]]
@ -1169,7 +1168,7 @@ dependencies = [
"cargo_metadata", "cargo_metadata",
"libloading", "libloading",
"mbe", "mbe",
"memmap", "memmap2",
"object", "object",
"proc_macro_api", "proc_macro_api",
"proc_macro_test", "proc_macro_test",

View file

@ -12,7 +12,7 @@ doctest = false
[dependencies] [dependencies]
object = { version = "0.23", default-features = false, features = ["std", "read_core", "elf", "macho", "pe"] } object = { version = "0.23", default-features = false, features = ["std", "read_core", "elf", "macho", "pe"] }
libloading = "0.6.0" libloading = "0.6.0"
memmap = "0.7" memmap2 = "0.2.0"
tt = { path = "../tt", version = "0.0.0" } tt = { path = "../tt", version = "0.0.0" }
mbe = { path = "../mbe", version = "0.0.0" } mbe = { path = "../mbe", version = "0.0.0" }

View file

@ -7,7 +7,7 @@ use std::{
}; };
use libloading::Library; use libloading::Library;
use memmap::Mmap; use memmap2::Mmap;
use object::Object; use object::Object;
use proc_macro_api::ProcMacroKind; use proc_macro_api::ProcMacroKind;