# 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 = "stormchaser-api"
version = "1.5.0"
build = "build.rs"
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A robust, distributed workflow engine for event-driven and human-triggered workflows."
readme = "README.md"
license = "MIT OR Apache-2.0 OR CDLA-Permissive-2.0"
repository = "https://github.com/paninfracon/stormchaser"

[features]
default = ["mcp"]
mcp = [
    "dep:rmcp",
    "dep:rmcp-openapi",
    "dep:url",
]

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

[[bin]]
name = "stormchaser-api"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.aead]
version = "0.5"

[dependencies.aes-gcm]
version = "0.10"

[dependencies.anyhow]
version = "1.0"

[dependencies.async-nats]
version = "0.47"

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

[dependencies.aws-config]
version = "1"

[dependencies.aws-sdk-s3]
version = "1.65"

[dependencies.aws-sdk-sts]
version = "1.63"

[dependencies.axum]
version = "0.7"

[dependencies.axum-extra]
version = "0.9"
features = ["typed-header"]

[dependencies.base64]
version = "0.22.1"

[dependencies.bollard]
version = "0.18"

[dependencies.bytes]
version = "1.11.1"

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

[dependencies.cloudevents-sdk]
version = "0.9.0"

[dependencies.futures]
version = "0.3"

[dependencies.git2]
version = "0.20"
features = ["vendored-openssl"]

[dependencies.hcl-rs]
version = "0.19.7"

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"

[dependencies.jsonschema]
version = "0.46"
default-features = false

[dependencies.jsonwebtoken]
version = "9"

[dependencies.k8s-openapi]
version = "0.27"
features = [
    "v1_31",
    "schemars",
]

[dependencies.kube]
version = "3"
features = [
    "runtime",
    "derive",
    "config",
]

[dependencies.log]
version = "0.4"

[dependencies.once_cell]
version = "1.20"

[dependencies.opentelemetry]
version = "0.27"

[dependencies.opentelemetry-otlp]
version = "0.27"
features = ["grpc-tonic"]

[dependencies.opentelemetry-semantic-conventions]
version = "0.27"

[dependencies.opentelemetry_sdk]
version = "0.27"
features = [
    "rt-tokio",
    "metrics",
]

[dependencies.regex]
version = "1.12.3"

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

[dependencies.reqwest-middleware]
version = "0.4"
features = ["json"]

[dependencies.reqwest-retry]
version = "0.7.0"

[dependencies.rmcp]
version = "1.6.0"
features = [
    "server",
    "macros",
    "transport-streamable-http-server",
    "schemars",
]
optional = true

[dependencies.rmcp-openapi]
version = "0.26.6"
optional = true

[dependencies.rustls]
version = "0.23"
features = ["ring"]

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

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

[dependencies.sha2]
version = "0.10"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio-rustls",
    "postgres",
    "uuid",
    "chrono",
    "json",
    "macros",
    "migrate",
]
default-features = false

[dependencies.stormchaser-engine]
version = "1.5.0"

[dependencies.stormchaser-model]
version = "1.5.0"

[dependencies.stormchaser-opa]
version = "1.5.0"

[dependencies.stormchaser-tls]
version = "1.5.0"

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

[dependencies.tokio-stream]
version = "0.1.18"

[dependencies.tower]
version = "0.5"
features = ["util"]

[dependencies.tower-http]
version = "0.5"
features = ["trace"]

[dependencies.tower_governor]
version = "0.4"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.28"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.url]
version = "2.5.8"
optional = true

[dependencies.urlencoding]
version = "2.1"

[dependencies.utoipa]
version = "5.4.0"
features = [
    "axum_extras",
    "uuid",
    "chrono",
]

[dependencies.utoipa-swagger-ui]
version = "8.0"
features = [
    "axum",
    "vendored",
]

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

[dev-dependencies.base64]
version = "0.22.1"

[dev-dependencies.bytes]
version = "1.11.1"

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

[dev-dependencies.dotenvy]
version = "0.15.7"

[dev-dependencies.futures-util]
version = "0.3.32"

[dev-dependencies.mime]
version = "0.3"

[dev-dependencies.rand]
version = "0.8"

[dev-dependencies.rsa]
version = "0.9.10"
features = [
    "getrandom",
    "pem",
]

[dev-dependencies.serde_json]
version = "1.0"
features = ["preserve_order"]

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

[dev-dependencies.tower]
version = "0.5"
features = ["util"]

[dev-dependencies.walkdir]
version = "2.5.0"

[dev-dependencies.wiremock]
version = "0.6"

[build-dependencies.vergen]
version = "8.3"
features = [
    "build",
    "cargo",
    "git",
    "gitcl",
    "rustc",
    "si",
]
