#memory-map #io #file-io #mmap #file

unmaintained memmap

Cross-platform Rust API for memory-mapped file IO

14 releases

Uses old Rust 2015

0.7.0 Sep 20, 2018
0.6.2 Jan 6, 2018
0.6.1 Nov 9, 2017
0.5.2 Feb 26, 2017
0.2.2 Nov 7, 2015

#735 in Memory management

Download history 76577/week @ 2024-03-14 73466/week @ 2024-03-21 99723/week @ 2024-03-28 90134/week @ 2024-04-04 96947/week @ 2024-04-11 94123/week @ 2024-04-18 92020/week @ 2024-04-25 95301/week @ 2024-05-02 94470/week @ 2024-05-09 107301/week @ 2024-05-16 111336/week @ 2024-05-23 122902/week @ 2024-05-30 132807/week @ 2024-06-06 127226/week @ 2024-06-13 123911/week @ 2024-06-20 123478/week @ 2024-06-27

537,632 downloads per month
Used in fewer than 300 crates

MIT/Apache

51KB
945 lines

memmap

A Rust library for cross-platform memory mapped IO.

Build Status Windows Build Status Documentation 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

Platforms

memmap should work on any platform supported by libc. memmap requires Rust stable 1.13 or greater.

memmap is continuously tested on:

  • x86_64-unknown-linux-gnu (Linux)
  • i686-unknown-linux-gnu
  • x86_64-unknown-linux-musl (Linux MUSL)
  • x86_64-apple-darwin (OSX)
  • i686-apple-darwin
  • x86_64-pc-windows-msvc (Windows)
  • i686-pc-windows-msvc
  • x86_64-pc-windows-gnu
  • i686-pc-windows-gnu

memmap is continuously cross-compiled against:

  • arm-linux-androideabi (Android)
  • aarch64-unknown-linux-gnu (ARM)
  • arm-unknown-linux-gnueabihf
  • mips-unknown-linux-gnu (MIPS)
  • x86_64-apple-ios (iOS)
  • i686-apple-ios

License

memmap 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) 2015 Dan Burkert.

Dependencies

~215KB