# 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"
name = "athena_rs"
version = "3.6.1"
authors = ["floris@xylex.group"]
build = false
include = [
    "/src/**",
    "/sql/**",
    "/benches/**",
    "/examples/**",
    "/tests/sequin.rs",
    "/Cargo.toml",
    "/Cargo.lock",
    "/README.md",
    "/CHANGELOG.md",
    "/config.yaml",
    "/config/pipelines.yaml",
    "/openapi.yaml",
    "/openapi-wss.yaml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Hyper performant polyglot Database driver"
documentation = "https://athena-db.com/docs"
readme = "README.md"
license = "MIT"

[features]
cdc = ["dep:axum"]
deadpool_experimental = ["dep:deadpool-postgres"]
default = [
    "cdc",
    "deadpool_experimental",
    "provisioning",
    "s3_backups",
    "execution_window_experimental",
    "metrics",
    "pipelines",
    "webhooks",
    "vacuum_health",
    "wss",
    "storage",
    "tokio-console",
]
execution_window_experimental = []
loki = [
    "dep:tracing-loki",
    "dep:url",
]
metrics = []
pipelines = []
provisioning = []
s3_backups = []
storage = ["s3_backups"]
tokio-console = [
    "dep:console-subscriber",
    "dep:humantime",
]
vacuum_health = []
webhooks = []
wss = []

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

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

[[example]]
name = "athena_client_sdk"
path = "examples/athena_client_sdk.rs"

[[example]]
name = "gateway_alias_methods"
path = "examples/gateway_alias_methods.rs"

[[example]]
name = "gateway_bulk_workflow"
path = "examples/gateway_bulk_workflow.rs"

[[example]]
name = "gateway_complex_filters"
path = "examples/gateway_complex_filters.rs"

[[example]]
name = "gateway_delete_builder"
path = "examples/gateway_delete_builder.rs"

[[example]]
name = "gateway_endpoints"
path = "examples/gateway_endpoints.rs"

[[example]]
name = "gateway_fetch_builder"
path = "examples/gateway_fetch_builder.rs"

[[example]]
name = "gateway_insert_builder"
path = "examples/gateway_insert_builder.rs"

[[example]]
name = "gateway_raw_select_nested"
path = "examples/gateway_raw_select_nested.rs"

[[example]]
name = "gateway_routes_static"
path = "examples/gateway_routes_static.rs"

[[example]]
name = "gateway_row_id_shortcuts"
path = "examples/gateway_row_id_shortcuts.rs"

[[example]]
name = "gateway_rpc_builder"
path = "examples/gateway_rpc_builder.rs"

[[example]]
name = "gateway_shared_conditions"
path = "examples/gateway_shared_conditions.rs"

[[example]]
name = "gateway_sql"
path = "examples/gateway_sql.rs"

[[example]]
name = "gateway_typed_requests"
path = "examples/gateway_typed_requests.rs"

[[example]]
name = "gateway_update_builder"
path = "examples/gateway_update_builder.rs"

[[example]]
name = "perf_insert_duplicate_replay"
path = "examples/perf_insert_duplicate_replay.rs"

[[example]]
name = "supabase_health_tracking"
path = "examples/supabase_health_tracking.rs"

[[test]]
name = "sequin"
path = "tests/sequin.rs"
required-features = ["cdc"]

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

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

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

[dependencies.actix-cors]
version = "0.7.0"

[dependencies.actix-files]
version = "0.6.6"

[dependencies.actix-service]
version = "2.0.3"

[dependencies.actix-web]
version = "4.8.0"

[dependencies.anyhow]
version = "1.0.86"

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

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

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

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

[dependencies.axum]
version = "0.7"
features = [
    "ws",
    "json",
]
optional = true

[dependencies.bigdecimal]
version = "0.4.8"

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

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

[dependencies.colored]
version = "3.0.0"

[dependencies.console-subscriber]
version = "0.4.1"
optional = true

[dependencies.csv]
version = "1.4"

[dependencies.deadpool-postgres]
version = "0.14"
optional = true

[dependencies.dirs]
version = "5.0"

[dependencies.dotenv]
version = "0.15.0"

[dependencies.flate2]
version = "1.0"

[dependencies.futures]
version = "0.3.31"

[dependencies.hex]
version = "0.4"

[dependencies.humantime]
version = "2.3"
optional = true

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

[dependencies.num-bigint]
version = "0.4.6"

[dependencies.num_cpus]
version = "1.16.0"

[dependencies.once_cell]
version = "1.19.0"

[dependencies.redis]
version = "1.0.2"

[dependencies.regex]
version = "1.11"

[dependencies.reqwest]
version = "0.12.4"
features = [
    "json",
    "blocking",
    "rustls-tls",
]

[dependencies.rust_decimal]
version = "1.37.2"
features = [
    "serde",
    "serde-with-float",
]

[dependencies.scylla]
version = "1.1.0"

[dependencies.sentry]
version = "0.36.0"

[dependencies.sentry-tracing]
version = "0.36.0"

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

[dependencies.serde_json]
version = "1.0.111"

[dependencies.serde_urlencoded]
version = "0.7.1"

[dependencies.serde_yaml]
version = "0.9.34"

[dependencies.sha256]
version = "1.4.0"

[dependencies.socket2]
version = "0.6.1"

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

[dependencies.strsim]
version = "0.11.1"

[dependencies.supabase_rs]
version = "0.5.1"

[dependencies.tar]
version = "0.4"

[dependencies.thiserror]
version = "1.0.44"

[dependencies.tokio]
version = "1.38.1"
features = [
    "full",
    "tracing",
]

[dependencies.tokio-postgres]
version = "0.7.13"
features = [
    "array-impls",
    "with-chrono-0_4",
    "with-serde_json-1",
    "with-uuid-1",
]

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

[dependencies.tracing]
version = "0.1.40"

[dependencies.tracing-appender]
version = "0.2.4"

[dependencies.tracing-loki]
version = "0.2.6"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "time",
    "chrono",
    "ansi",
]

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

[dependencies.uuid]
version = "1.16.0"

[dependencies.which]
version = "4.4"

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

[dev-dependencies.testcontainers]
version = "0.21"
features = ["blocking"]
