memmap-rs
memmap-rs copied to clipboard
cross-platform Rust API for memory mapped IO
It seems like this crate wasn't really (well?) maintained since October 2018. Last commit was https://github.com/danburkert/memmap-rs/commit/3b047cc2b04558d8a1de3933be5f573c74bc8e0f (18 Apr 2018) and last release was [memmap v0.7.0](https://crates.io/crates/memmap/0.7.0) (20 Sep 2018).
mmap is an incredibly subtle topic when it comes to memory safety. Therefore, I would expect the unsafe functions in this library to really carefully document what is required to...
as tempfile have superseded tempdir
According to your [post](https://users.rust-lang.org/t/how-to-resize-a-memmap/32723), I have implemented the resize() function
As per the MSDN documentation for [CreateFileMapping](https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-createfilemappinga): ` An attempt to map a file with a length of 0 (zero) fails with an error code of ERROR_FILE_INVALID. Applications should test...
See https://crates.io/crates/stable_deref_trait This enables having a complex struct that borrows byte slices from a `Mmap`, and storing it next to that `Mmap` to eliminate the lifetime parameter.
It's useful to be able to map a file `PROT_READ` and `MAP_PRIVATE` on Linux. Later on you can make some pages writeable and write them, or use `/proc/.../mem` to write...
Huge Pages
What is required to get support for huge pages? Is it just a matter of passing the correct flags to mmap with some checks around alignment and size etc?
Currently it doesn't seem to be possible to create an anonymous RWX mapping. Could we get something like `make_exec_mut`?