[package]
edition = "2024"
rust-version = "1.85"
name = "region"
version = "4.0.0"
authors = ["Elliott Linder <elliott.darfink@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform virtual memory API"
homepage = "https://github.com/darfink/region-rs"
documentation = "https://docs.rs/region"
readme = "README.md"
keywords = [
"region",
"page",
"lock",
"protect",
"maps",
]
categories = [
"api-bindings",
"memory-management",
"no-std",
"os",
]
license = "MIT"
repository = "https://github.com/darfink/region-rs"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["std"]
std = ["bitflags/std"]
[lib]
name = "region"
path = "src/lib.rs"
[dependencies.bitflags]
version = "2.6"
default-features = false
[dependencies.libc]
version = "0.2.172"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.mach2]
version = "0.4.2"
[target."cfg(unix)".dev-dependencies.mmap]
version = "0.1.6"
package = "mmap-fixed"
[target."cfg(windows)".dependencies.windows-sys]
version = ">=0.52, <=0.61"
features = [
"Win32_Foundation",
"Win32_System_Memory",
"Win32_System_SystemInformation",
"Win32_System_Diagnostics_Debug",
]
[lints.clippy]
missing_inline_in_public_items = "deny"
print_stdout = "deny"
ptr_as_ptr = "deny"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.rust]
missing_docs = "deny"
nonstandard_style = "deny"
unused = "deny"
warnings = "deny"