#mmap #memory #memory-mapped #file #mapping #low-level #memory-map


Strongly typed memory mapped files that allow for easy manipulation of large amounts of data

7 releases

0.3.1 Aug 29, 2022
0.3.0 Aug 29, 2022
0.2.3 Aug 27, 2022
0.1.1 Aug 24, 2022

#483 in Memory management

40 downloads per month
Used in graph_csr

MIT license

396 lines


Note: This crate is still in early development!

This library provides a simple to user interface to manipulate memory mapped memory by forcing the usage of Rust's strong typing system. It's a simple abstraction over the mmap crate.

It further abstracts the memory mapped region by also supporting iterators and easy local updates.

Example usage:

use easy_mmap::EasyMmapBuilder;
use mmap::MapOption;

fn main() {
    let map = &mut EasyMmapBuilder::<u32>::new()
        .options(&[MapOption::MapReadable, MapOption::MapWritable])

        .for_each(|(idx, x)| *x = idx as u32);

    map.iter().for_each(|v| {
        print!("{} ", v);


~33K SLoC