28 releases (8 breaking)

0.9.4 Jan 25, 2024
0.9.3 Dec 19, 2023
0.9.0 Oct 3, 2023
0.7.1 Jun 24, 2023
0.1.0 Jan 18, 2020

#11 in Memory management

Download history 683653/week @ 2024-01-25 735074/week @ 2024-02-01 719580/week @ 2024-02-08 688754/week @ 2024-02-15 732872/week @ 2024-02-22 772474/week @ 2024-02-29 721256/week @ 2024-03-07 737755/week @ 2024-03-14 784614/week @ 2024-03-21 833865/week @ 2024-03-28 818686/week @ 2024-04-04 783132/week @ 2024-04-11 859962/week @ 2024-04-18 736624/week @ 2024-04-25 887030/week @ 2024-05-02 716390/week @ 2024-05-09

3,327,804 downloads per month
Used in 3,677 crates (378 directly)

MIT/Apache

125KB
2K SLoC

memmap2

Build Status Crates.io Documentation Rust 1.36+

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 (linux only)

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

Copyright (c) 2015 Dan Burkert

Dependencies