Registry / utility / memmap

memmap

JSON →
library0.7.0rscratesunverified

Cross-platform Rust API for memory-mapped file IO.

utility
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

use memmap::Mmap;

Memory-maps a file and reads the first 10 bytes.

use memmap::Mmap; use std::fs::File; let file = File::open("example.txt").unwrap(); let mmap = unsafe { Mmap::map(&file).unwrap() }; println!("{:?}", &mmap[..10]);
Debug
Known footguns
gotchaUnsafe: Mmap::map requires unsafe block; incorrect usage can cause undefined behavior.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
12 hits · last 30 days
gptbot
3
claudebot
3
ahrefsbot
1
Resources