2 releases

0.9.1 Feb 23, 2021
0.9.0 Feb 21, 2021

#480 in Memory management

Download history 68/week @ 2024-03-24 188/week @ 2024-03-31 125/week @ 2024-04-07 194/week @ 2024-04-14 235/week @ 2024-04-21 181/week @ 2024-04-28 141/week @ 2024-05-05 168/week @ 2024-05-12 137/week @ 2024-05-19 177/week @ 2024-05-26 60/week @ 2024-06-02 92/week @ 2024-06-09 230/week @ 2024-06-16 174/week @ 2024-06-23 228/week @ 2024-06-30 115/week @ 2024-07-07

755 downloads per month
Used in 2 crates (via rust-fontconfig)

MIT/Apache

61KB
1K SLoC

mmapio

Fork of the great memmap and mapr library.

A Rust library for cross-platform memory mapped IO.

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)
  • locked support (MAP_LOCKED on unix)
  • executable memory maps
  • huge page support

Platforms

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

mmapio 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

mmapio 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

mmapio 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