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
15,472,327 downloads per month
Used in 9,076 crates
(1,325 directly)
135KB
2K
SLoC
memmap2
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_STACKon 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