# 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 = "tenuo"
version = "0.1.0-beta.4"
authors = ["Tenuo Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Agent Capability Flow Control - Rust core library"
readme = "README.md"
keywords = [
    "authorization",
    "capabilities",
    "agents",
    "security",
    "middleware",
]
categories = [
    "authentication",
    "cryptography",
    "network-programming",
    "web-programming",
    "security",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tenuo-ai/tenuo"

[features]
cel = [
    "cel-interpreter",
    "moka",
]
control-plane = []
data-plane = []
default = [
    "control-plane",
    "data-plane",
]
http-client = ["reqwest"]
python = ["pyo3"]
python-extension = [
    "pyo3/extension-module",
    "python",
]
server = [
    "tokio",
    "axum",
    "tower",
    "tracing",
]

[lib]
name = "tenuo"
crate-type = ["rlib"]
path = "src/lib.rs"

[[bin]]
name = "tenuo"
path = "src/bin/cli.rs"
required-features = [
    "control-plane",
    "data-plane",
]

[[bin]]
name = "tenuo-authorizer"
path = "src/bin/authorizer.rs"
required-features = [
    "data-plane",
    "server",
]

[[bin]]
name = "tenuo-control"
path = "src/bin/control.rs"
required-features = [
    "control-plane",
    "server",
]

[[bin]]
name = "tenuo-orchestrator"
path = "src/bin/orchestrator.rs"
required-features = [
    "control-plane",
    "data-plane",
    "http-client",
]

[[bin]]
name = "tenuo-worker"
path = "src/bin/worker.rs"
required-features = ["data-plane"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "warrant_benchmarks"
path = "benches/warrant_benchmarks.rs"
harness = false

[dependencies.axum]
version = "0.7"
optional = true

[dependencies.base64]
version = "0.22"

[dependencies.cel-interpreter]
version = "0.8"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.ciborium]
version = "0.2"

[dependencies.clap]
version = "4.4"
features = [
    "derive",
    "env",
]

[dependencies.der]
version = "0.7"
features = ["pem"]

[dependencies.ed25519-dalek]
version = "2.1"
features = [
    "rand_core",
    "serde",
    "batch",
    "pkcs8",
    "zeroize",
]

[dependencies.glob]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.humantime]
version = "2.1"

[dependencies.ipnetwork]
version = "0.20"

[dependencies.matchit]
version = "0.7"

[dependencies.moka]
version = "0.12"
features = ["sync"]
optional = true

[dependencies.pem]
version = "3.0"

[dependencies.pkcs8]
version = "0.10"
features = [
    "alloc",
    "pem",
]

[dependencies.pyo3]
version = "0.24"
features = ["abi3-py38"]
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.regex]
version = "1.10"

[dependencies.reqwest]
version = "0.11"
features = [
    "blocking",
    "json",
]
optional = true

[dependencies.secrecy]
version = "0.8"
features = ["serde"]

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

[dependencies.serde_bytes]
version = "0.11"

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.10"

[dependencies.smallvec]
version = "1.13"
features = ["union"]

[dependencies.spki]
version = "0.7"
features = [
    "alloc",
    "pem",
]

[dependencies.subtle]
version = "2.6"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.35"
features = ["full"]
optional = true

[dependencies.tower]
version = "0.4"
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.url]
version = "2.5"

[dependencies.uuid]
version = "1.6"
features = [
    "v4",
    "v7",
    "serde",
    "js",
]

[dependencies.zeroize]
version = "1.7"

[dev-dependencies.ci_group]
version = "0.1"

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.proptest]
version = "1.4"

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

[dev-dependencies.tokio]
version = "1.35"
features = [
    "full",
    "test-util",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]

[lints.rust]
deprecated = "allow"

[profile.dev.package."*"]
opt-level = 3

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 16
strip = true
