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 1039482/week @ 2024-11-08 1160435/week @ 2024-11-15 1052021/week @ 2024-11-22 1146834/week @ 2024-11-29 1293240/week @ 2024-12-06 1165774/week @ 2024-12-13 679990/week @ 2024-12-20 539355/week @ 2024-12-27 902725/week @ 2025-01-03 1119030/week @ 2025-01-10 1040549/week @ 2025-01-17 1250656/week @ 2025-01-24 1278948/week @ 2025-01-31 1271824/week @ 2025-02-07 584006/week @ 2025-02-14

3,362,450 downloads per month
Used in 4,614 crates (482 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