# 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 = "2021"
name = "sandlock-core"
version = "0.8.2"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight process sandbox using Landlock, seccomp-bpf, and seccomp user notification"
homepage = "https://github.com/multikernel/sandlock"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/multikernel/sandlock"

[features]
cli = ["dep:clap"]
default = []

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

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

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

[dependencies.bincode]
version = "1"

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.goblin]
version = "0.9"

[dependencies.hudsucker]
version = "0.22"

[dependencies.jiff]
version = "0.2"

[dependencies.libc]
version = "0.2"

[dependencies.nix]
version = "0.29"
features = [
    "process",
    "signal",
    "fs",
    "ioctl",
    "poll",
]

[dependencies.pathdiff]
version = "0.2"

[dependencies.rand]
version = "0.8"

[dependencies.rand_chacha]
version = "0.3"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "net",
    "time",
    "sync",
    "macros",
    "io-util",
]

[dependencies.toml]
version = "0.8"

[dependencies.uuid]
version = "1"
features = ["v4"]

[dependencies.walkdir]
version = "2"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "test-util",
]
