# 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 = "dwctl"
version = "8.37.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The Doubleword Control Layer - A self-hostable observability and analytics platform for LLM applications"
readme = "README.md"
license = "MIT OR Apache-2.0"
resolver = "2"

[features]
default = ["embedded-db"]
embedded-db = ["dep:postgresql_embedded"]

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

[[bin]]
name = "dwctl"
path = "src/main.rs"

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

[dependencies.anyhow]
version = "1.0"

[dependencies.arc-swap]
version = "1.7"

[dependencies.argon2]
version = "0.5"

[dependencies.async-openai]
version = "0.34.0"
features = [
    "chat-completion-types",
    "completion-types",
    "embedding-types",
    "response-types",
]
default-features = false

[dependencies.async-stripe]
version = "1.0.0-rc.0"
features = [
    "rustls-tls-webpki-roots",
    "rustls-aws-lc-rs",
]
default-features = false

[dependencies.async-stripe-billing]
version = "1.0.0-rc.0"
features = ["billing_portal_session"]

[dependencies.async-stripe-checkout]
version = "1.0.0-rc.0"
features = ["checkout_session"]

[dependencies.async-stripe-core]
version = "1.0.0-rc.0"
features = [
    "payment_intent",
    "customer",
]

[dependencies.async-stripe-misc]
version = "1.0.0-rc.0"
features = ["tax_calculation"]

[dependencies.async-stripe-types]
version = "1.0.0-rc.0"

[dependencies.async-stripe-webhook]
version = "1.0.0-rc.0"
features = [
    "async-stripe-checkout",
    "deserialize",
]

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

[dependencies.aws-credential-types]
version = "1.1"

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

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

[dependencies.axum-prometheus]
version = "0.10"

[dependencies.base64]
version = "0.22"

[dependencies.bon]
version = "3.3"

[dependencies.brotli]
version = "8.0"

[dependencies.bytes]
version = "1.5"

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

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

[dependencies.ctor]
version = "0.9"

[dependencies.dashmap]
version = "6.1.0"
features = ["serde"]

[dependencies.figment]
version = "0.10"
features = [
    "yaml",
    "env",
    "test",
]

[dependencies.fusillade]
version = "15.1.0"

[dependencies.futures]
version = "0.3.31"

[dependencies.hex]
version = "0.4.3"

[dependencies.hmac]
version = "0.13.0"

[dependencies.humantime]
version = "2.2.0"

[dependencies.humantime-serde]
version = "1.1"

[dependencies.jsonwebtoken]
version = "9.0"

[dependencies.lettre]
version = "0.11"
features = [
    "smtp-transport",
    "file-transport",
    "tokio1-rustls-tls",
    "builder",
]
default-features = false

[dependencies.log]
version = "0.4"

[dependencies.metrics]
version = "0.24"

[dependencies.metrics-exporter-prometheus]
version = "0.18"

[dependencies.mime_guess]
version = "2.0"

[dependencies.minijinja]
version = "2.15.1"

[dependencies.moka]
version = "0.12"
features = ["future"]

[dependencies.multer]
version = "3.1.0"

[dependencies.notify]
version = "8.2.0"

[dependencies.once_cell]
version = "1.20"

[dependencies.onwards]
version = "0.24.0"

[dependencies.opentelemetry]
version = "0.31.0"

[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
    "http-proto",
    "reqwest-blocking-client",
    "reqwest-rustls",
]
default-features = false

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

[dependencies.outlet]
version = "0.8.0"

[dependencies.outlet-postgres]
version = "0.5.1"

[dependencies.paste]
version = "1.0"

[dependencies.postgresql_embedded]
version = "0.20"
features = ["bundled"]
optional = true

[dependencies.prometheus]
version = "0.14"

[dependencies.rand]
version = "0.10"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "rustls-no-provider",
    "http2",
    "charset",
]
default-features = false

[dependencies.rust-embed]
version = "8.5"
features = ["debug-embed"]

[dependencies.rust_decimal]
version = "1.38.0"
features = ["serde"]

[dependencies.rustls]
version = "0.23"
features = ["aws-lc-rs"]

[dependencies.scopeguard]
version = "1"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_with]
version = "3.14.1"

[dependencies.sha2]
version = "0.11.0"

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

[dependencies.sqlx-pool-router]
version = "0.2.0"

[dependencies.thiserror]
version = "2.0.14"

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

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

[dependencies.tokio-util]
version = "0.7"

[dependencies.tower]
version = "0.5"

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

[dependencies.tracing]
version = "0.1"

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

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

[dependencies.underway]
version = "0.2"

[dependencies.url]
version = "2.4"
features = ["serde"]

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

[dependencies.utoipa-scalar]
version = "0.3"
features = ["axum"]

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

[dev-dependencies.axum-test]
version = "18.4.1"

[dev-dependencies.criterion]
version = "0.8"
features = ["async_tokio"]

[dev-dependencies.serde_urlencoded]
version = "0.7"

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

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

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

[dev-dependencies.test-log]
version = "0.2"
features = ["trace"]

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

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