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 672953/week @ 2024-01-23 732463/week @ 2024-01-30 713911/week @ 2024-02-06 701961/week @ 2024-02-13 719459/week @ 2024-02-20 752697/week @ 2024-02-27 745327/week @ 2024-03-05 732930/week @ 2024-03-12 788255/week @ 2024-03-19 753373/week @ 2024-03-26 889947/week @ 2024-04-02 777042/week @ 2024-04-09 791141/week @ 2024-04-16 815241/week @ 2024-04-23 836551/week @ 2024-04-30 743339/week @ 2024-05-07

3,326,801 downloads per month
Used in 3,659 crates (377 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