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 968059/week @ 2024-11-24 1289543/week @ 2024-12-01 1201173/week @ 2024-12-08 1192339/week @ 2024-12-15 536071/week @ 2024-12-22 583174/week @ 2024-12-29 991163/week @ 2025-01-05 1091244/week @ 2025-01-12 1081357/week @ 2025-01-19 1330736/week @ 2025-01-26 1201576/week @ 2025-02-02 1320205/week @ 2025-02-09 1540893/week @ 2025-02-16 1475198/week @ 2025-02-23 1833253/week @ 2025-03-02 1644507/week @ 2025-03-09

6,587,657 downloads per month
Used in 4,929 crates (532 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