--- /dev/null Tue Jul 8 00:00:00 2026 +++ modcargo-crates/mmap-rs-0.6.1/src/os_impl/openbsd.rs Tue Jul 8 00:00:00 2026 @@ -0,0 +1,27 @@ +use crate::areas::{MemoryArea, Protection, ShareMode}; +use crate::error::Error; +use std::fs::File; +use std::io::BufReader; +use std::marker::PhantomData; +use std::ops::Range; + +/// Stub MemoryAreas for OpenBSD. +/// OpenBSD does not expose a portable /proc vmmap interface; hnsw_rs only +/// uses Mmap/MmapOptions so this path is never called at runtime. +pub struct MemoryAreas { + _phantom: PhantomData, +} + +impl MemoryAreas> { + pub fn open(_pid: Option, _range: Option>) -> Result { + Err(Error::Io(std::io::Error::new( + std::io::ErrorKind::Unsupported, + "MemoryAreas not supported on OpenBSD", + ))) + } +} + +impl Iterator for MemoryAreas { + type Item = Result; + fn next(&mut self) -> Option { None } +}