docs.rs failed to build mmslice-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

rust-mmslice Build Status

A Memory Mapped File Slice (read-only) for Rust.

Example

extern crate mmslice;

use std::fs::File;
use mmslice::MmapSlice;

fn main() {
    if let Ok(file) = File::open("foo.txt") {
        if let Ok(mmslice) = MmapSlice::new::<u8>(file, 3) {
            let slice: &[u8] = mmslice.as_slice();
            // ...
        }
    }
}