#memory-map #file-io #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

#624 in Filesystem

Download history 420/week @ 2024-01-27 568/week @ 2024-02-03 341/week @ 2024-02-10 403/week @ 2024-02-17 386/week @ 2024-02-24 307/week @ 2024-03-02 511/week @ 2024-03-09 443/week @ 2024-03-16 1100/week @ 2024-03-23 895/week @ 2024-03-30 392/week @ 2024-04-06 381/week @ 2024-04-13 358/week @ 2024-04-20 1174/week @ 2024-04-27 421/week @ 2024-05-04 761/week @ 2024-05-11

2,839 downloads per month
Used in 12 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
~108K SLoC