28 releases (8 breaking)

0.9.4 Jan 25, 2024
0.9.3 Dec 19, 2023
0.9.0 Oct 3, 2023
0.7.1 Jun 24, 2023
0.1.0 Jan 18, 2020

#11 in Memory management

Download history 716725/week @ 2024-01-17 675357/week @ 2024-01-24 739843/week @ 2024-01-31 713869/week @ 2024-02-07 695742/week @ 2024-02-14 722457/week @ 2024-02-21 770995/week @ 2024-02-28 728777/week @ 2024-03-06 733758/week @ 2024-03-13 788785/week @ 2024-03-20 784615/week @ 2024-03-27 859364/week @ 2024-04-03 789294/week @ 2024-04-10 857603/week @ 2024-04-17 745143/week @ 2024-04-24 702678/week @ 2024-05-01

3,224,304 downloads per month
Used in 3,639 crates (374 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