native-ipc 0.6.0

One safe API for least-authority native shared memory: sealed memfd on Linux, Mach memory entries on macOS, exact-rights sections on Windows
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.97"
name = "native-ipc"
version = "0.6.0"
authors = ["Rodrigo Agurto"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "One safe API for least-authority native shared memory: sealed memfd on Linux, Mach memory entries on macOS, exact-rights sections on Windows"
homepage = "https://github.com/ro-ag/native-ipc-rs"
documentation = "https://docs.rs/native-ipc"
readme = "README.md"
keywords = [
    "ipc",
    "shared-memory",
    "process",
    "capability",
    "security",
]
categories = [
    "os",
    "memory-management",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ro-ag/native-ipc-rs"

[package.metadata.docs.rs]
targets = [
    "aarch64-apple-darwin",
    "aarch64-pc-windows-msvc",
    "aarch64-unknown-linux-gnu",
    "x86_64-pc-windows-msvc",
    "x86_64-unknown-linux-gnu",
]

[features]
default = ["std"]
raw-pointer = []
std = ["native-ipc-core/std"]

[lib]
name = "native_ipc"
path = "src/lib.rs"

[[example]]
name = "common_memory"
path = "examples/common_memory.rs"

[[test]]
name = "macos-auth-worker-entry"
path = "tests/macos_auth_worker_entry.rs"
harness = false

[[test]]
name = "macos-auth-worker-requirement-matrix"
path = "tests/macos_auth_worker_requirement_matrix.rs"
harness = false

[[test]]
name = "macos-broker-gate-entry"
path = "tests/macos_broker_gate_entry.rs"
harness = false

[[test]]
name = "public_consumer_surface"
path = "tests/public_consumer_surface.rs"

[[test]]
name = "receiver-main-downstream"
path = "tests/receiver_main_downstream.rs"
harness = false

[[test]]
name = "rt"
path = "tests/rt.rs"

[dependencies.native-ipc-core]
version = "0.6.0"

[dependencies.sha2]
version = "0.10"
default-features = false

[dev-dependencies.static_assertions]
version = "1.1"

[build-dependencies.cc]
version = "1.2"

[target."cfg(loom)".dev-dependencies.loom]
version = "0.7.2"

[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.61"
features = [
    "Wdk_Foundation",
    "Win32_Foundation",
    "Win32_Security",
    "Win32_Security_Cryptography",
    "Win32_Storage_FileSystem",
    "Win32_System_JobObjects",
    "Win32_System_IO",
    "Win32_System_Memory",
    "Win32_System_Pipes",
    "Win32_System_SystemInformation",
    "Win32_System_Threading",
    "Win32_System_WindowsProgramming",
]

[lints.clippy]
module_name_repetitions = "allow"
must_use_candidate = "allow"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.rust]
missing_docs = "deny"
unsafe_op_in_unsafe_fn = "deny"