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 1392110/week @ 2024-08-24 1030681/week @ 2024-08-31 1235230/week @ 2024-09-07 990064/week @ 2024-09-14 1305870/week @ 2024-09-21 1436070/week @ 2024-09-28 1843016/week @ 2024-10-05 1987239/week @ 2024-10-12 1447762/week @ 2024-10-19 948476/week @ 2024-10-26 1005021/week @ 2024-11-02 1044830/week @ 2024-11-09 1204137/week @ 2024-11-16 968603/week @ 2024-11-23 1243888/week @ 2024-11-30 1084807/week @ 2024-12-07

4,664,077 downloads per month
Used in 4,518 crates (476 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