Memory locking and unlocking. See Mmap::lock, Mmap::unlock,
MmapMut::lock and MmapMut::unlock.
@vmx
[0.5.5] - 2022-07-09
Fixed
Limit mapping length to isize::MAX to prevent undefined behavior
on calling std::slice::from_raw_parts. Technically affects only 32-bit systems.
@adamreichold
[0.5.4] - 2022-06-04
Added
Add madvice operations specific to Darwin. @turbocool3r
Implement common traits for the Advice enum. @nyurik
flush, flush_async, flush_range and flush_async_range to MmapRaw matching
the corresponding methods on MmapMut.
@cberner
[0.5.1] - 2022-01-09
Fixed
Explicitly call fstat64 on Linux, emscripten and l4re targets.
@adamreichold
[0.5.0] - 2021-09-19
Added
MmapOptions accepts any type that supports RawHandle/RawFd returning now.
This allows using memmap2 not only with Rust std types, but also with
async-std one.
@adamreichold
(unix) Memoize page size to avoid repeatedly calling into sysconf machinery.
@adamreichold
Changed
(win) Use std::os::windows::io::AsRawHandle directly, without relying on std::fs::File.
@adamreichold
Do not panic when failing to release resources in Drop impls.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps memmap2 from 0.3.1 to 0.5.6.
Changelog
Sourced from memmap2's changelog.
... (truncated)
Commits
c7dd140
Version bump.c60a467
Add support for mlock() and munlock()e6a7319
Version bump.04a86f9
Avoid creating slices that exceed isize::MAX bytes.52ce24a
Version bump.deef3e4
Update changelog.f7db122
Fix formatting.b05c42a
Make stub implementation Infallible.3825a1c
Add madvice operations specific to Darwin.d8863a9
Replace tempdir crate with tempfile.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)