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

#13 in Memory management

Download history 388451/week @ 2023-12-23 574120/week @ 2023-12-30 712693/week @ 2024-01-06 684843/week @ 2024-01-13 689278/week @ 2024-01-20 709942/week @ 2024-01-27 725042/week @ 2024-02-03 708393/week @ 2024-02-10 696584/week @ 2024-02-17 750164/week @ 2024-02-24 755698/week @ 2024-03-02 732216/week @ 2024-03-09 758182/week @ 2024-03-16 774843/week @ 2024-03-23 867837/week @ 2024-03-30 663813/week @ 2024-04-06

3,184,217 downloads per month
Used in 3,537 crates (364 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