# 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.95"
name = "nono"
version = "0.61.0"
authors = ["Luke Hinds"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Capability-based sandboxing library using Landlock (Linux) and Seatbelt (macOS)"
homepage = "https://github.com/always-further/nono"
readme = "README.md"
keywords = [
    "sandbox",
    "security",
    "capability",
    "landlock",
    "seatbelt",
]
categories = [
    "os",
    "api-bindings",
]
license = "Apache-2.0"
repository = "https://github.com/always-further/nono"
resolver = "2"

[features]
default = ["system-keyring"]
system-keyring = ["dep:keyring"]

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

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

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

[dependencies.der]
version = "0.7"
default-features = false

[dependencies.getrandom]
version = "0.4"

[dependencies.globset]
version = "0.4"

[dependencies.ignore]
version = "0.4"

[dependencies.keyring]
version = "3"
optional = true
default-features = false

[dependencies.libc]
version = "0.2"

[dependencies.regress]
version = "0.11"

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

[dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[dependencies.sha2]
version = "0.11"

[dependencies.sigstore-trust-root]
version = "=0.8.0"

[dependencies.sigstore-verify]
version = "0.8.0"
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dependencies.walkdir]
version = "2"

[dependencies.x509-cert]
version = "0.2"
default-features = false

[dependencies.zeroize]
version = "1"
features = [
    "alloc",
    "serde",
]

[dev-dependencies.jsonschema]
version = "0.46"

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

[build-dependencies.prettyplease]
version = "0.2"

[build-dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[build-dependencies.syn]
version = "2"

[build-dependencies.typify]
version = "0.6"

[target.'cfg(target_os = "linux")'.dependencies.keyring]
version = "3"
features = [
    "async-secret-service",
    "crypto-rust",
    "async-io",
]
optional = true
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.landlock]
version = "0.4"

[target.'cfg(target_os = "linux")'.dependencies.nix]
version = "0.31.3"
features = [
    "fs",
    "user",
]

[target.'cfg(target_os = "macos")'.dependencies.keyring]
version = "3"
features = ["apple-native"]
optional = true
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.nix]
version = "0.31.3"
features = [
    "fs",
    "user",
]

[lints.clippy]
unwrap_used = "deny"
