#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 1305691/week @ 2025-12-27 2450414/week @ 2026-01-03 2811154/week @ 2026-01-10 2906939/week @ 2026-01-17 2929501/week @ 2026-01-24 3146769/week @ 2026-01-31 3274647/week @ 2026-02-07 3080132/week @ 2026-02-14 3241077/week @ 2026-02-21 3837499/week @ 2026-02-28 4158118/week @ 2026-03-07 3765645/week @ 2026-03-14 3607047/week @ 2026-03-21 3536063/week @ 2026-03-28 3704029/week @ 2026-04-04 3792656/week @ 2026-04-11

15,216,402 downloads per month
Used in 9,937 crates (1,509 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