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

#13 in Memory management

Download history 726022/week @ 2024-01-05 665688/week @ 2024-01-12 708995/week @ 2024-01-19 698374/week @ 2024-01-26 728572/week @ 2024-02-02 713313/week @ 2024-02-09 686431/week @ 2024-02-16 749971/week @ 2024-02-23 761201/week @ 2024-03-01 724245/week @ 2024-03-08 746262/week @ 2024-03-15 787206/week @ 2024-03-22 853514/week @ 2024-03-29 790925/week @ 2024-04-05 795046/week @ 2024-04-12 725866/week @ 2024-04-19

3,302,997 downloads per month
Used in 3,573 crates (369 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