# 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 = "argentor-security"
version = "1.4.2"
authors = ["Federico Boiero <fboiero@xcapit.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Capability-based permissions, RBAC, audit logging, and encryption for Argentor"
homepage = "https://github.com/fboiero/Argentor"
readme = false
keywords = [
    "ai",
    "agent",
    "wasm",
    "mcp",
    "orchestration",
]
categories = [
    "web-programming",
    "asynchronous",
    "network-programming",
]
license = "AGPL-3.0-only"
repository = "https://github.com/fboiero/Argentor"

[features]
siem = [
    "dep:reqwest",
    "dep:hmac",
]
sqlite = ["dep:rusqlite"]

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

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

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

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

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

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

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

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

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

[dependencies.argentor-core]
version = "1.4.2"

[dependencies.async-trait]
version = "0.1"

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

[dependencies.getrandom]
version = "0.2"

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"
optional = true

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
    "stream",
    "multipart",
]
optional = true
default-features = false

[dependencies.rusqlite]
version = "0.32"
features = ["bundled"]
optional = true

[dependencies.rustls-pemfile]
version = "2"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-rustls]
version = "0.26"

[dependencies.tracing]
version = "0.1"

[dependencies.unicode-normalization]
version = "0.1"

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

[dependencies.zstd]
version = "0.13"

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

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

[lints.clippy]
cloned_instead_of_copied = "warn"
expect_used = "warn"
explicit_iter_loop = "warn"
implicit_clone = "warn"
redundant_closure_for_method_calls = "warn"
semicolon_if_nothing_returned = "warn"
uninlined_format_args = "warn"
unwrap_used = "warn"

[lints.rust]
missing_docs = "warn"
