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 1242774/week @ 2024-09-24 1859124/week @ 2024-10-01 2053013/week @ 2024-10-08 1675200/week @ 2024-10-15 1034946/week @ 2024-10-22 888723/week @ 2024-10-29 1030229/week @ 2024-11-05 1108891/week @ 2024-11-12 1215136/week @ 2024-11-19 926733/week @ 2024-11-26 1344419/week @ 2024-12-03 1127447/week @ 2024-12-10 1143320/week @ 2024-12-17 497660/week @ 2024-12-24 630669/week @ 2024-12-31 858598/week @ 2025-01-07

3,308,819 downloads per month
Used in 4,634 crates (482 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