rifts 0.3.10

Rift Realtime Protocol / 1.0 — server + client implementation
Documentation
# 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"
name = "rifts"
version = "0.3.10"
authors = ["Zhenyi <434836402@qq.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rift Realtime Protocol / 1.0 — server + client implementation"
homepage = "https://github.com/rift-proto/rifts"
documentation = "https://docs.rs/rifts"
readme = "README.adoc"
keywords = [
    "realtime",
    "websocket",
    "messaging",
    "pubsub",
    "protocol",
]
categories = [
    "network-programming",
    "web-programming::websocket",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rift-proto/rifts"

[features]
actix-web = [
    "dep:actix-web",
    "dep:actix-ws",
]
all-frameworks = [
    "axum",
    "actix-web",
    "warp",
    "ntex",
]
axum = ["dep:axum"]
client = [
    "websocket",
    "dep:rand",
]
default = ["websocket"]
ntex = ["dep:ntex"]
redis = ["dep:redis"]
sled = ["dep:sled"]
tokio-frameworks = [
    "axum",
    "warp",
]
warp = ["dep:warp"]
websocket = ["dep:tokio-tungstenite"]

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

[[example]]
name = "redis_multi_instance"
path = "examples/redis_multi_instance.rs"
required-features = ["redis"]

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "sled_store"
path = "benches/sled_store.rs"
harness = false
required-features = ["sled"]

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

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

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

[[bench]]
name = "websocket_loop"
path = "benches/websocket_loop.rs"
harness = false
required-features = ["client"]

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

[dependencies.actix-web]
version = "4"
optional = true

[dependencies.actix-ws]
version = "0.3"
optional = true

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

[dependencies.axum]
version = "0.8"
features = ["ws"]
optional = true

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

[dependencies.ciborium]
version = "0.2"

[dependencies.dashmap]
version = "6"

[dependencies.futures-util]
version = "0.3"
features = ["sink"]

[dependencies.ntex]
version = "2"
features = ["ws"]
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.rand]
version = "0.9"
optional = true

[dependencies.redis]
version = "1.3.0"
features = [
    "tokio-comp",
    "aio",
    "streams",
]
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.sled]
version = "0.34"
optional = true

[dependencies.thiserror]
version = "1"

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

[dependencies.tokio-tungstenite]
version = "0.24"
features = ["url"]
optional = true

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

[dependencies.tracing]
version = "0.1"

[dependencies.ulid]
version = "1"

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

[dependencies.warp]
version = "0.3"
optional = true

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

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

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