# 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"
name = "ccag"
version = "1.9.3"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Self-hosted API gateway that routes Claude Code through Amazon Bedrock"
readme = "README.md"
keywords = [
    "claude-code",
    "amazon-bedrock",
    "api-gateway",
    "anthropic",
    "llm-proxy",
]
categories = ["web-programming::http-server"]
license = "MIT"
repository = "https://github.com/antkawam/claude-code-aws-gateway"

[features]
integration = []
mock-bedrock = []

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

[[bin]]
name = "ccag-server"
path = "src/main.rs"

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

[dependencies.anyhow]
version = "1"

[dependencies.async-stream]
version = "0.3"

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

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

[dependencies.aws-credential-types]
version = "1"
features = ["hardcoded-credentials"]

[dependencies.aws-sdk-bedrock]
version = "1"

[dependencies.aws-sdk-bedrockruntime]
version = "1"

[dependencies.aws-sdk-eventbridge]
version = "1"

[dependencies.aws-sdk-pricing]
version = "1"

[dependencies.aws-sdk-servicequotas]
version = "1"

[dependencies.aws-sdk-sns]
version = "1"

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

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

[dependencies.aws-smithy-types]
version = "1"

[dependencies.axum]
version = "0.8"
features = ["macros"]

[dependencies.axum-server]
version = "0.8"
features = ["tls-rustls"]

[dependencies.bytes]
version = "1"

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

[dependencies.csv]
version = "1"

[dependencies.dirs]
version = "6.0.0"

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.jsonwebtoken]
version = "9"

[dependencies.opentelemetry]
version = "0.29"
features = ["metrics"]

[dependencies.opentelemetry-otlp]
version = "0.29"
features = [
    "metrics",
    "grpc-tonic",
]

[dependencies.opentelemetry-prometheus]
version = "0.29"

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

[dependencies.prometheus]
version = "0.14"

[dependencies.rand]
version = "0.9"

[dependencies.rcgen]
version = "0.14"

[dependencies.regex]
version = "1"

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

[dependencies.rustls]
version = "0.23"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

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

[dependencies.subtle]
version = "2.6.1"

[dependencies.thiserror]
version = "2"

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

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

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

[dependencies.tower]
version = "0.5"

[dependencies.tower-http]
version = "0.6"
features = [
    "cors",
    "trace",
]

[dependencies.tracing]
version = "0.1"

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

[dependencies.url]
version = "2"

[dependencies.urlencoding]
version = "2"

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

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

[dev-dependencies.rsa]
version = "0.9"

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

[dev-dependencies.tokio-test]
version = "0.4"

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

[profile.dev]
opt-level = 0

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