#mmap #memory-map #io #file

memmap2

Cross-platform Rust API for memory-mapped file IO

3 unstable releases

0.2.1 Feb 8, 2021
0.2.0 Dec 19, 2020
0.1.0 Jan 18, 2020

#15 in Memory management

Download history 1611/week @ 2020-11-10 1581/week @ 2020-11-17 1576/week @ 2020-11-24 3497/week @ 2020-12-01 9308/week @ 2020-12-08 11185/week @ 2020-12-15 8490/week @ 2020-12-22 9823/week @ 2020-12-29 15059/week @ 2021-01-05 15190/week @ 2021-01-12 14386/week @ 2021-01-19 16676/week @ 2021-01-26 19989/week @ 2021-02-02 22294/week @ 2021-02-09 25119/week @ 2021-02-16 24164/week @ 2021-02-23

42,383 downloads per month
Used in 199 crates (26 directly)

MIT/Apache

59KB
1K SLoC

memmap2

Build Status Crates.io Documentation Rust 1.31+

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

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 Evgeniy Reizner

Copyright (c) 2015 Dan Burkert

Dependencies