# 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.85"
name = "bext-realtime"
version = "0.2.0"
authors = ["Benjamin Favre <ben@bext-stack.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Realtime pub/sub for bext — WebSocket and SSE with optional Redis relay"
homepage = "https://bext-stack.github.io"
readme = "README.md"
keywords = [
    "bext",
    "realtime",
    "websocket",
    "sse",
    "pubsub",
]
categories = [
    "network-programming",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/bext-stack/bext"

[features]
default = []
redis = ["dep:redis"]

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

[dependencies.anyhow]
version = "1"

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

[dependencies.dashmap]
version = "6"

[dependencies.futures-core]
version = "0.3"

[dependencies.parking_lot]
version = "0.12"

[dependencies.redis]
version = "0.27"
features = [
    "tokio-comp",
    "connection-manager",
]
optional = true

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

[dependencies.serde_json]
version = "1"

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

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "test-util",
]
