krabka_log_iobench/lib.rs
1//! Bench-only support crate.
2//!
3//! This crate hosts `benches/mmap_read.rs` and `benches/uncached_io.rs`. The
4//! mmap bench needs the `unsafe` `memmap2::Mmap::map` call, and the
5//! workspace-wide `unsafe_code = "forbid"` policy disallows that call in the
6//! main crates. This crate opts out of the workspace lint set, as `Cargo.toml`
7//! shows, so the bench can measure the mmap path without a weaker policy
8//! elsewhere. The `O_DIRECT` and `RWF_DONTCACHE` bench needs no `unsafe`.