All notable changes to mmap-rs will be documented in this file.
- Implement
MmapOptions::page_sizes()
to return the supported page sizes for the platform. - Separate the functions to get the page size and the allocation granularity.
- Updated windows crate from version 0.39 to 0.44.
- Changed
MmapOptions::new()
to returnResult<Self, Error>
rather thanSelf
to support the use ofNonZeroUsize
in nix. - Updated nix crate from version 0.24 to 0.26.
- Added support for
i686-linux-android
,aarch64-linux-android
,x86_64-linux-android
andarmv7-linux-androideabi
. - Added
MapFlags::TRANSPARENT_HUGE_PAGES
to hint the kernel that it may merge pages within the mapping into huge pages if possible when set tomadvise
mode. MmapOptions::with_flags()
appends the flags instead of overriding them.- Implement
Send
andSync
forMmap
.
- Added support for
i686-pc-windows-msvc
,aarch64-pc-windows-msvc
,aarch64-apple-ios
,x86_64-apple-ios
,armv7a-unknown-linux-gnueabihf
,aarch64-unknown-linux-gnu
andi686-unknown-linux-gnu
. - Updated various dependencies.
- Relicensed under MIT and Apache.
- Added the
MemoryAreas
iterator to iterate over the memory areas of a process. - Changed
UnsafeMmapFlags::MAP_JIT
toUnsafeMmapFlags::JIT
to fix compilation on Mac OS X.