# 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.90"
name = "sockudo-app"
version = "4.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Application manager implementations for Sockudo"
readme = false
license-file = "LICENSE"
repository = "https://github.com/sockudo/sockudo"

[features]
default = ["local"]
dynamodb = [
    "sockudo-core/dynamodb",
    "dep:aws-config",
    "dep:aws-sdk-dynamodb",
]
full = [
    "mysql",
    "postgres",
    "dynamodb",
    "surrealdb",
    "scylladb",
]
local = []
mysql = [
    "sockudo-core/mysql",
    "dep:sqlx",
    "dep:futures-util",
    "dep:urlencoding",
    "dep:regex",
]
postgres = [
    "sockudo-core/postgres",
    "dep:sqlx",
    "dep:futures-util",
    "dep:urlencoding",
    "dep:regex",
]
scylladb = [
    "sockudo-core/scylladb",
    "dep:scylla",
    "dep:futures",
]
surrealdb = [
    "sockudo-core/surrealdb",
    "dep:surrealdb",
    "dep:surrealdb-types",
    "dep:regex",
]

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

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

[dependencies.ahash]
version = "0.8.12"
features = ["serde"]

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

[dependencies.aws-config]
version = "^1.8.10"
features = [
    "behavior-version-latest",
    "credentials-process",
    "default-https-client",
    "rt-tokio",
    "sso",
]
optional = true
default-features = false

[dependencies.aws-sdk-dynamodb]
version = "1.98.0"
features = [
    "behavior-version-latest",
    "default-https-client",
    "rt-tokio",
]
optional = true
default-features = false

[dependencies.dashmap]
version = "^6.1.0"

[dependencies.futures]
version = "0.3.31"
optional = true

[dependencies.futures-util]
version = "0.3.31"
optional = true

[dependencies.moka]
version = "0.12.11"
features = [
    "future",
    "sync",
]

[dependencies.regex]
version = "1.12.2"
optional = true

[dependencies.scylla]
version = "1.3.1"
features = ["rustls-023"]
optional = true

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

[dependencies.sockudo-core]
version = "4.1.1"

[dependencies.sonic-rs]
version = "0.5.6"

[dependencies.sqlx]
version = "^0.8.6"
features = [
    "runtime-tokio-rustls",
    "mysql",
    "postgres",
    "tls-rustls",
]
optional = true

[dependencies.surrealdb]
version = "3.0.4"
features = [
    "protocol-ws",
    "protocol-http",
    "rustls",
]
optional = true
default-features = false

[dependencies.surrealdb-types]
version = "3.0.5"
optional = true

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

[dependencies.tracing]
version = "0.1"

[dependencies.urlencoding]
version = "2.1.3"
optional = true

[dev-dependencies.tokio]
version = "^1"
features = [
    "full",
    "tracing",
    "full",
]

[dev-dependencies.url]
version = "2.5.7"
features = ["serde"]
