# 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-adapter"
version = "3.4.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Connection adapters and horizontal scaling for Sockudo"
readme = false
license-file = "LICENSE"
repository = "https://github.com/sockudo/sockudo"

[features]
default = ["local"]
full = [
    "redis",
    "redis-cluster",
    "nats",
]
local = []
nats = [
    "sockudo-core/nats",
    "dep:async-nats",
]
redis = [
    "sockudo-core/redis",
    "dep:redis",
]
redis-cluster = [
    "redis",
    "sockudo-core/redis-cluster",
]

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

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

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

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

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

[dependencies.async-nats]
version = "^0.45"
optional = true

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

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1.10"

[dependencies.crossfire]
version = "3.1.5"
features = ["tokio"]

[dependencies.dashmap]
version = "^6.1.0"

[dependencies.futures]
version = "0.3.31"

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

[dependencies.mockall]
version = "0.13.1"

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

[dependencies.num_cpus]
version = "1.17.0"

[dependencies.rand]
version = "0.9.2"

[dependencies.redis]
version = "^1"
features = [
    "tokio-comp",
    "json",
    "cluster",
    "cluster-async",
    "tls-rustls",
    "tokio-rustls-comp",
    "tls-rustls-webpki-roots",
    "connection-manager",
]
optional = true

[dependencies.regex]
version = "1.12.2"

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

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

[dependencies.sockudo-delta]
version = "3.4.2"

[dependencies.sockudo-filter]
version = "3.4.2"

[dependencies.sockudo-metrics]
version = "3.4.2"

[dependencies.sockudo-protocol]
version = "3.4.2"

[dependencies.sockudo-webhook]
version = "3.4.2"

[dependencies.sockudo-ws]
version = "1.7.4"
features = ["axum-integration"]

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

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

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

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1.18.1"
features = [
    "v4",
    "fast-rng",
    "macro-diagnostics",
]

[dev-dependencies.chrono]
version = "^0.4.42"

[dev-dependencies.md5]
version = "0.8.0"

[dev-dependencies.num_cpus]
version = "1.17.0"

[dev-dependencies.sockudo-app]
version = "3.4.2"
