[package] name = "mapped-file" description = "Construct a memory mapping over any file object" keywords = ["unix", "mmap", "generic", "file", "fd"] version = "0.0.8-r1" edition = "2021" repository="https://github.com/notflan/mapped-file" license="MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] default = ["default-cloexec"] # Add support for file-descriptor operations other than simply mapping # TODO: XXX: Incomplete, will be enabled by default when complete file=[] # Default to opening any internal file-descriptors as `O_CLOEXEC` (close-on-execute.) # For `file` feature: `MFD_CLOEXEC`/`FD_CLOEXEC` will be used in creation of all memfds by default. # # NOTE: This is currently not configureable within the interface. To prevent API-break, this feature exists to allow some configuration of this option. (TODO: In the future, this should be in the interface for `MemoryFile`/`NamedMemoryFile` et al.) default-cloexec = [] [dependencies] lazy_static = "1.4.0" libc = "0.2.132" memchr = "2.5.0"