# 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.85.0"
name = "adk-auth"
version = "0.9.0"
authors = ["James Karanja Maina <james.karanja@zavora.ai>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Access control and authentication for Rust Agent Development Kit (ADK-Rust)"
documentation = "https://docs.rs/adk-auth"
readme = "README.md"
keywords = [
    "ai",
    "agent",
    "adk",
    "auth",
    "security",
]
categories = [
    "authentication",
    "api-bindings",
]
license = "Apache-2.0"
repository = "https://github.com/zavora-ai/adk-rust"
resolver = "2"

[features]
auth-bridge = [
    "sso",
    "adk-server",
    "axum",
]
aws-secrets = [
    "dep:aws-sdk-secretsmanager",
    "dep:aws-config",
]
azure-keyvault = [
    "dep:azure_security_keyvault_secrets",
    "dep:azure_identity",
    "dep:azure_core",
]
default = []
gcp-secrets = [
    "dep:google-cloud-secretmanager-v1",
    "dep:google-cloud-gax",
]
otlp-audit = [
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
    "dep:opentelemetry-otlp",
]
postgres-audit = ["dep:sqlx"]
sso = [
    "jsonwebtoken",
    "reqwest",
    "dashmap",
    "base64",
]

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

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

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

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

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

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

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

[dependencies.adk-core]
version = "0.9.0"

[dependencies.adk-server]
version = "0.9.0"
optional = true

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

[dependencies.aws-config]
version = "1"
features = ["behavior-version-latest"]
optional = true

[dependencies.aws-sdk-secretsmanager]
version = "1"
optional = true

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

[dependencies.azure_core]
version = "0.22"
optional = true

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

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

[dependencies.base64]
version = "0.22"
optional = true

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

[dependencies.dashmap]
version = "6"
optional = true

[dependencies.google-cloud-gax]
version = "1.9"
optional = true
default-features = false

[dependencies.google-cloud-secretmanager-v1]
version = "1"
optional = true

[dependencies.hex]
version = "0.4"

[dependencies.jsonwebtoken]
version = "10"
features = ["aws_lc_rs"]
optional = true

[dependencies.opentelemetry]
version = "0.31"
optional = true

[dependencies.opentelemetry-otlp]
version = "0.31"
features = ["grpc-tonic"]
optional = true

[dependencies.opentelemetry_sdk]
version = "0.31"
features = ["rt-tokio"]
optional = true

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "postgres",
    "chrono",
    "json",
]
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.40"
features = ["sync"]
default-features = false

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.tokio]
version = "1.40"
features = [
    "rt-multi-thread",
    "macros",
    "time",
    "test-util",
]
default-features = false
