29 releases

0.9.5 Sep 13, 2024
0.9.4 Jan 25, 2024
0.9.3 Dec 19, 2023
0.9.0 Oct 3, 2023
0.1.0 Jan 18, 2020

#3 in Memory management

Download history 1105012/week @ 2024-08-04 1106508/week @ 2024-08-11 1085870/week @ 2024-08-18 1383948/week @ 2024-08-25 1136106/week @ 2024-09-01 1158092/week @ 2024-09-08 1016831/week @ 2024-09-15 1267514/week @ 2024-09-22 1598652/week @ 2024-09-29 1967760/week @ 2024-10-06 1911829/week @ 2024-10-13 1252895/week @ 2024-10-20 912243/week @ 2024-10-27 1007414/week @ 2024-11-03 1102651/week @ 2024-11-10 1157611/week @ 2024-11-17

4,282,392 downloads per month
Used in 4,442 crates (468 directly)

MIT/Apache

125KB
2K SLoC

memmap2

Build Status Crates.io Documentation Rust 1.36+

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