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

memmapix

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

5 releases

0.7.3 Mar 11, 2023
0.7.2 Mar 11, 2023
0.6.3 Jul 3, 2022

#187 in Filesystem

Download history 302/week @ 2023-02-09 443/week @ 2023-02-16 144/week @ 2023-02-23 151/week @ 2023-03-02 276/week @ 2023-03-09 319/week @ 2023-03-16 675/week @ 2023-03-23 246/week @ 2023-03-30 148/week @ 2023-04-06 250/week @ 2023-04-13 347/week @ 2023-04-20 216/week @ 2023-04-27 281/week @ 2023-05-04 173/week @ 2023-05-11 521/week @ 2023-05-18 510/week @ 2023-05-25

1,515 downloads per month
Used in 10 crates (3 directly)

MIT/Apache

95KB
1.5K SLoC

memmapix

github Build codecov

docs.rs crates.io

license-apache license-mit

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

~0–5MB
~84K SLoC