Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/examples/nodemap/main.rs @ 47983:e834b79def74
rust: Switch to the memmap2-rs crate
https://github.com/RazrFalcon/memmap2-rs
This is a fork of the original memmap crate which appears to be unmaintained:
https://github.com/danburkert/memmap-rs/issues/90
This fork is the most popular according to https://crates.io/keywords/mmap
Differential Revision: https://phab.mercurial-scm.org/D11397
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Fri, 10 Sep 2021 09:53:09 +0200 |
parents | 18a261b11b20 |
children | 14bfd22a57a9 |
line wrap: on
line diff
--- a/rust/hg-core/examples/nodemap/main.rs Thu Sep 09 18:07:40 2021 +0200 +++ b/rust/hg-core/examples/nodemap/main.rs Fri Sep 10 09:53:09 2021 +0200 @@ -7,7 +7,7 @@ use hg::revlog::node::*; use hg::revlog::nodemap::*; use hg::revlog::*; -use memmap::MmapOptions; +use memmap2::MmapOptions; use rand::Rng; use std::fs::File; use std::io;