32 releases

0.9.9 Oct 21, 2025
0.9.7 Jul 13, 2025
0.9.5 Sep 13, 2024
0.9.4 Jan 25, 2024
0.1.0 Jan 18, 2020

#4 in Memory management

Download history 2066600/week @ 2025-10-03 2036805/week @ 2025-10-10 2188219/week @ 2025-10-17 2323636/week @ 2025-10-24 2350353/week @ 2025-10-31 2356839/week @ 2025-11-07 2346905/week @ 2025-11-14 2346183/week @ 2025-11-21 2168966/week @ 2025-11-28 2483477/week @ 2025-12-05 2380827/week @ 2025-12-12 1607769/week @ 2025-12-19 1257740/week @ 2025-12-26 2213050/week @ 2026-01-02 2799099/week @ 2026-01-09 2876672/week @ 2026-01-16

9,308,451 downloads per month
Used in 7,745 crates (1,047 directly)

MIT/Apache

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