#mmap #memmap2 #memory-map

memmapix

A pure Rust library for cross-platform memory mapped IO, which replaces libc with rustix

7 unstable releases (3 breaking)

0.9.0 Apr 23, 2026
0.8.0 Apr 22, 2026
0.7.6 Sep 18, 2023
0.7.3 Mar 11, 2023
0.6.3 Jul 3, 2022

#87 in Memory management

Download history 551/week @ 2026-01-26 692/week @ 2026-02-02 523/week @ 2026-02-09 735/week @ 2026-02-16 632/week @ 2026-02-23 757/week @ 2026-03-02 1065/week @ 2026-03-09 756/week @ 2026-03-16 789/week @ 2026-03-23 743/week @ 2026-03-30 1049/week @ 2026-04-06 2542/week @ 2026-04-13 4272/week @ 2026-04-20 10222/week @ 2026-04-27 8530/week @ 2026-05-04 7564/week @ 2026-05-11

30,972 downloads per month
Used in 9 crates (3 directly)

MIT/Apache

155KB
2.5K SLoC

memmapix

github LoC Build codecov

docs.rs crates.io crates.io license

A pure Rust library for cross-platform memory mapped IO, which replaces libc with rustix.

The project is modified based on the memmap2-rs.

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

memmapix 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) 2026 Al Liu

Copyright (c) 2020 Yevhenii Reizner

Copyright (c) 2015 Dan Burkert

Dependencies

~1.4–6.5MB
~163K SLoC