#mmap #memory-map #io #file

memmap2

Cross-platform Rust API for memory-mapped file IO

12 unstable releases (4 breaking)

0.5.3 Feb 10, 2022
0.5.0 Sep 19, 2021
0.3.0 Jun 10, 2021
0.2.1 Feb 8, 2021
0.1.0 Jan 18, 2020

#3 in Memory management

Download history 125624/week @ 2022-01-29 137647/week @ 2022-02-05 142439/week @ 2022-02-12 159403/week @ 2022-02-19 193175/week @ 2022-02-26 186302/week @ 2022-03-05 172299/week @ 2022-03-12 175171/week @ 2022-03-19 175183/week @ 2022-03-26 175804/week @ 2022-04-02 176935/week @ 2022-04-09 166563/week @ 2022-04-16 166921/week @ 2022-04-23 159536/week @ 2022-04-30 165402/week @ 2022-05-07 151292/week @ 2022-05-14

670,630 downloads per month
Used in 936 crates (100 directly)

MIT/Apache

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