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 1013383/week @ 2024-08-01 1133628/week @ 2024-08-08 1178002/week @ 2024-08-15 1230730/week @ 2024-08-22 1103880/week @ 2024-08-29 1218802/week @ 2024-09-05 1140967/week @ 2024-09-12 1115322/week @ 2024-09-19 1501078/week @ 2024-09-26 1819793/week @ 2024-10-03 2020883/week @ 2024-10-10 1502878/week @ 2024-10-17 1006262/week @ 2024-10-24 925758/week @ 2024-10-31 1023986/week @ 2024-11-07 956615/week @ 2024-11-14

4,084,721 downloads per month
Used in 4,428 crates (465 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