From 03d4596baa330a057011e5238983095c08039360 Mon Sep 17 00:00:00 2001 From: Christian Haynes <06chaynes@gmail.com> Date: Sun, 23 Jan 2022 13:01:18 -0500 Subject: [PATCH] fix(security): replaced memmap with memmap2 (#30) --- Cargo.toml | 2 +- src/content/write.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9696287..11aed2e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ either = "1.6.1" async-std = { version = "1.10.0", features = ["unstable"] } thiserror = "1.0.29" futures = "0.3.17" -memmap = "0.7.0" +memmap2 = "0.5" [dev-dependencies] async-attributes = "1.1.2" diff --git a/src/content/write.rs b/src/content/write.rs index 7861525..4365353 100644 --- a/src/content/write.rs +++ b/src/content/write.rs @@ -9,7 +9,7 @@ use async_std::future::Future; use async_std::task::{self, Context, JoinHandle, Poll}; use futures::io::AsyncWrite; use futures::prelude::*; -use memmap::MmapMut; +use memmap2::MmapMut; use ssri::{Algorithm, Integrity, IntegrityOpts}; use tempfile::NamedTempFile;