#mmap #memory-map #io #file

memmap2

Cross-platform Rust API for memory-mapped file IO

8 unstable releases (3 breaking)

new 0.4.0 Sep 16, 2021
0.3.1 Aug 15, 2021
0.3.0 Jun 10, 2021
0.2.3 May 24, 2021
0.1.0 Jan 18, 2020

#9 in Memory management

Download history 45773/week @ 2021-05-29 45526/week @ 2021-06-05 53349/week @ 2021-06-12 55171/week @ 2021-06-19 54171/week @ 2021-06-26 56884/week @ 2021-07-03 58171/week @ 2021-07-10 57900/week @ 2021-07-17 60492/week @ 2021-07-24 69949/week @ 2021-07-31 61722/week @ 2021-08-07 66397/week @ 2021-08-14 72524/week @ 2021-08-21 74596/week @ 2021-08-28 72371/week @ 2021-09-04 87566/week @ 2021-09-11

278,076 downloads per month
Used in 400 crates (52 directly)

MIT/Apache

71KB
1.5K SLoC

memmap2

Build Status Crates.io Documentation Rust 1.36+

A Rust library for cross-platform memory mapped IO.

This is a fork of the memmap-rs crate.

Features

  • file-backed memory maps
  • anonymous memory maps
  • synchronous and asynchronous flushing
  • copy-on-write memory maps
  • read-only memory maps
  • stack support (MAP_STACK on unix)
  • executable memory maps
  • huge page support

A list of supported/tested targets can be found in Actions.

License

memmap2 is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, LICENSE-MIT for details.

Copyright (c) 2020 Yevhenii Reizner

Copyright (c) 2015 Dan Burkert

Dependencies