Mercurial > public > mercurial-scm > hg-stable
comparison rust/hg-core/examples/nodemap/index.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 | 8f7c6656ac79 |
children | 4c5f6e95df84 |
comparison
equal
deleted
inserted
replaced
47982:4afd6cc447b9 | 47983:e834b79def74 |
---|---|
3 // This software may be used and distributed according to the terms of the | 3 // This software may be used and distributed according to the terms of the |
4 // GNU General Public License version 2 or any later version. | 4 // GNU General Public License version 2 or any later version. |
5 | 5 |
6 //! Minimal `RevlogIndex`, readable from standard Mercurial file format | 6 //! Minimal `RevlogIndex`, readable from standard Mercurial file format |
7 use hg::*; | 7 use hg::*; |
8 use memmap::*; | 8 use memmap2::*; |
9 use std::fs::File; | 9 use std::fs::File; |
10 use std::ops::Deref; | 10 use std::ops::Deref; |
11 use std::path::Path; | 11 use std::path::Path; |
12 use std::slice; | 12 use std::slice; |
13 | 13 |