#mmap #memory-map #io #file

memmap2

Cross-platform Rust API for memory-mapped file IO

9 releases (4 breaking)

0.5.0 Sep 19, 2021
0.3.1 Aug 15, 2021
0.3.0 Jun 10, 2021
0.2.1 Feb 8, 2021
0.1.0 Jan 18, 2020

#2 in Memory management

Download history 63679/week @ 2021-08-10 68751/week @ 2021-08-17 74886/week @ 2021-08-24 70346/week @ 2021-08-31 77713/week @ 2021-09-07 86369/week @ 2021-09-14 82703/week @ 2021-09-21 85445/week @ 2021-09-28 84919/week @ 2021-10-05 88044/week @ 2021-10-12 87884/week @ 2021-10-19 80650/week @ 2021-10-26 89093/week @ 2021-11-02 93190/week @ 2021-11-09 96471/week @ 2021-11-16 89284/week @ 2021-11-23

383,319 downloads per month
Used in 537 crates (68 directly)

MIT/Apache

74KB
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