You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.1 KiB
30 lines
1.1 KiB
[package]
|
|
name = "mapped-file"
|
|
description = "Construct a memory mapping over any file object"
|
|
keywords = ["unix", "mmap", "generic", "file", "fd"]
|
|
version = "0.0.9-r0"
|
|
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", "file"]
|
|
|
|
# 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"
|
|
stackalloc = "1.2.1"
|