StephanvanSchaik / mmap-rs

A cross-platform and safe Rust API to create and manage memory mappings in the virtual address space of the calling process.
Apache License 2.0
61 stars 17 forks source link

areas example uses imports that are not available #1

Closed Anton-4 closed 2 years ago

Anton-4 commented 2 years ago

Trying to use the imports shown in the areas example:

use mmap_rs::{Error, MemoryMaps, Protection, ShareMode};

Shows errors for all imports:

StephanvanSchaik commented 2 years ago

It sounds like you are trying to use the 0.3 release that is available on crates.io. The areas example is part of the upcoming 0.4 release, and currently only runs if you specify the crate as:

mmap-rs = { git = "https://github.com/StephanvanSchaik/mmap-rs" }

Unfortunately, there are a few things that are left to do for me before I am publishing 0.4, but I will try to have a look at that this week.

Anton-4 commented 2 years ago

Oh right, that makes sense, thanks for the tip! No need to rush :)