#mmap #memory-map #io #file

memmap2

Cross-platform Rust API for memory-mapped file IO

4 releases

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

#2 in Memory management

Download history 14922/week @ 2021-01-21 17804/week @ 2021-01-28 21166/week @ 2021-02-04 22453/week @ 2021-02-11 25945/week @ 2021-02-18 28160/week @ 2021-02-25 30253/week @ 2021-03-04 33948/week @ 2021-03-11 33911/week @ 2021-03-18 36655/week @ 2021-03-25 34783/week @ 2021-04-01 36955/week @ 2021-04-08 37147/week @ 2021-04-15 40634/week @ 2021-04-22 40959/week @ 2021-04-29 35446/week @ 2021-05-06

105,081 downloads per month
Used in 245 crates (28 directly)

MIT/Apache

61KB
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