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

#5 in Memory management

Download history 887366/week @ 2024-03-31 766079/week @ 2024-04-07 784897/week @ 2024-04-14 836064/week @ 2024-04-21 830061/week @ 2024-04-28 864978/week @ 2024-05-05 860991/week @ 2024-05-12 931751/week @ 2024-05-19 787303/week @ 2024-05-26 813674/week @ 2024-06-02 968098/week @ 2024-06-09 898027/week @ 2024-06-16 946961/week @ 2024-06-23 796524/week @ 2024-06-30 873439/week @ 2024-07-07 850295/week @ 2024-07-14

3,536,229 downloads per month
Used in 3,879 crates (406 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