#file-io #memory-map #file #mmap #memmap #memmap2

memmapix

No libc, pure Rust cross-platform Rust API for memory-mapped file IO

5 releases

0.7.6 Sep 18, 2023
0.7.5 Sep 18, 2023
0.7.3 Mar 11, 2023
0.6.3 Jul 3, 2022

#716 in Filesystem

Download history 1355/week @ 2024-11-17 1411/week @ 2024-11-24 1470/week @ 2024-12-01 1496/week @ 2024-12-08 1929/week @ 2024-12-15 1360/week @ 2024-12-22 1241/week @ 2024-12-29 1453/week @ 2025-01-05 1731/week @ 2025-01-12 1749/week @ 2025-01-19 2092/week @ 2025-01-26 2348/week @ 2025-02-02 1779/week @ 2025-02-09 1811/week @ 2025-02-16 2069/week @ 2025-02-23 1791/week @ 2025-03-02

7,626 downloads per month
Used in 18 crates (4 directly)

MIT/Apache

110KB
2K SLoC

memmapix

github Build codecov

docs.rs crates.io license

A pure Rust library for cross-platform memory mapped IO, which replace libc with rustix.

The project is modified based on the memmap2-rs.

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

A list of supported/tested targets can be found in Actions.

License

memmapix 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) 2022 Al Liu

Copyright (c) 2020 Yevhenii Reizner

Copyright (c) 2015 Dan Burkert

Dependencies

~2–10MB
~131K SLoC