# 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"
rust-version = "1.75"
name = "heliosdb-proxy"
version = "0.4.2"
authors = ["HeliosDB Team"]
build = false
exclude = [
    "demos/",
    "docs/",
    "operator/",
    "terraform/",
    "docker/",
    "scripts/",
    ".github/",
    "*.png",
    "*.jpg",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HeliosProxy - Intelligent connection router and failover manager for HeliosDB and PostgreSQL"
homepage = "https://www.heliosdb.com/heliosproxy.html"
documentation = "https://docs.rs/heliosdb-proxy"
readme = "README.md"
keywords = [
    "database",
    "proxy",
    "failover",
    "load-balancer",
    "connection-pool",
]
categories = [
    "database",
    "network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/dimensigon/HDB-HeliosDB-Proxy"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
all-features = [
    "pool-modes",
    "ha-tr",
    "query-cache",
    "routing-hints",
    "lag-routing",
    "rate-limiting",
    "circuit-breaker",
    "query-analytics",
    "multi-tenancy",
    "auth-proxy",
    "query-rewriting",
    "wasm-plugins",
    "graphql-gateway",
    "schema-routing",
    "distribcache",
    "anomaly-detection",
    "edge-proxy",
]
anomaly-detection = []
auth-proxy = []
circuit-breaker = []
default = ["pool-modes"]
distribcache = []
edge-proxy = []
graphql-gateway = []
ha-tr = []
heliosdb-topology = []
lag-routing = []
multi-tenancy = []
observability = [
    "dep:prometheus",
    "dep:opentelemetry",
]
pool-modes = []
postgres-topology = []
query-analytics = []
query-cache = []
query-rewriting = []
rate-limiting = []
routing-hints = []
schema-routing = []
wasm-plugins = ["dep:wasmtime"]

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

[[bin]]
name = "heliosdb-proxy"
path = "src/main.rs"

[[test]]
name = "integration"
path = "tests/integration/mod.rs"

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.base64]
version = "0.21"

[dependencies.bincode]
version = "1"

[dependencies.bytes]
version = "1"

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

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.config]
version = "0.14"

[dependencies.dashmap]
version = "5"

[dependencies.ed25519-dalek]
version = "2"
features = [
    "alloc",
    "fast",
]
default-features = false

[dependencies.flate2]
version = "1"

[dependencies.hmac]
version = "0.12"

[dependencies.include_dir]
version = "0.7"

[dependencies.md-5]
version = "0.10"

[dependencies.once_cell]
version = "1"

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

[dependencies.parking_lot]
version = "0.12"

[dependencies.prometheus]
version = "0.13"
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.11"
features = ["json"]
default-features = false

[dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
    "tls12",
    "logging",
]
default-features = false

[dependencies.rustls-pki-types]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.tar]
version = "0.4"

[dependencies.thiserror]
version = "1"

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

[dependencies.tokio-rustls]
version = "0.26"
features = [
    "ring",
    "tls12",
    "logging",
]
default-features = false

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

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

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

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

[dependencies.wasmtime]
version = "26"
features = [
    "cranelift",
    "runtime",
    "parallel-compilation",
]
optional = true
default-features = false

[dependencies.webpki-roots]
version = "0.26"

[dependencies.zstd]
version = "0.13"

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

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

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

[dev-dependencies.wat]
version = "1"
