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 1349954/week @ 2025-01-28 1155884/week @ 2025-02-04 1306280/week @ 2025-02-11 1631374/week @ 2025-02-18 1475053/week @ 2025-02-25 1866844/week @ 2025-03-04 1772826/week @ 2025-03-11 2094582/week @ 2025-03-18 1900217/week @ 2025-03-25 1525559/week @ 2025-04-01 1595050/week @ 2025-04-08 1332153/week @ 2025-04-15 1385056/week @ 2025-04-22 1273217/week @ 2025-04-29 1338645/week @ 2025-05-06 1107455/week @ 2025-05-13

5,293,611 downloads per month
Used in 5,276 crates (583 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