#mmap #memory-map

memmap2

Cross-platform Rust API for memory-mapped file IO

33 releases

0.9.10 Feb 15, 2026
0.9.9 Oct 21, 2025
0.9.8 Aug 22, 2025
0.9.7 Jul 13, 2025
0.1.0 Jan 18, 2020

#3 in Memory management

Download history 2014616/week @ 2025-11-27 2485056/week @ 2025-12-04 2402756/week @ 2025-12-11 1877995/week @ 2025-12-18 1248111/week @ 2025-12-25 1902997/week @ 2026-01-01 2781075/week @ 2026-01-08 2759476/week @ 2026-01-15 3011609/week @ 2026-01-22 3087913/week @ 2026-01-29 3220486/week @ 2026-02-05 3116601/week @ 2026-02-12 3199047/week @ 2026-02-19 3637337/week @ 2026-02-26 4110182/week @ 2026-03-05 3944999/week @ 2026-03-12

15,472,327 downloads per month
Used in 9,076 crates (1,325 directly)

MIT/Apache

135KB
2K SLoC

memmap2

Build Status Crates.io Documentation MSRV 1.63.0

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 (linux only)

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