plaza_session 0.8.2

WebSocket and TCP transports for the Plaza real-time shared-state framework, with a pluggable wire format.
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 = "plaza_session"
version = "0.8.2"
authors = ["Excerion Sun <dev@excsn.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WebSocket and TCP transports for the Plaza real-time shared-state framework, with a pluggable wire format."
readme = "README.md"
keywords = [
    "gamedev",
    "networking",
    "websocket",
    "multiplayer",
    "tcp",
]
categories = [
    "game-development",
    "network-programming",
    "asynchronous",
]
license = "MPL-2.0"
repository = "https://github.com/excsn/plaza"
resolver = "2"

[package.metadata.docs.rs]
all-features = true

[features]
actix_host = [
    "actix_ws",
    "dep:actix-files",
    "dep:tracing-subscriber",
]
actix_ws = [
    "dep:actix-ws",
    "dep:actix-web",
    "dep:bytestring",
]
default = [
    "actix_ws",
    "tcp",
    "json",
]
json = ["plaza_wire/json"]
msgpack = ["plaza_wire/msgpack"]
tcp = [
    "dep:tokio-util",
    "tokio/net",
]

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

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

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

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

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

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

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

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

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

[dependencies.actix-files]
version = "^0.6"
optional = true

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

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

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

[dependencies.bytes]
version = "^1"

[dependencies.bytestring]
version = "^1"
optional = true

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

[dependencies.parking_lot]
version = "^0.12"

[dependencies.plaza]
version = "0.7.1"

[dependencies.plaza_wire]
version = "0.7.1"
default-features = false

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

[dependencies.thiserror]
version = "^2.0"

[dependencies.tokio]
version = "^1"
features = [
    "sync",
    "rt",
    "macros",
    "time",
]

[dependencies.tokio-util]
version = "^0.7"
features = ["codec"]
optional = true

[dependencies.tracing]
version = "^0.1"

[dependencies.tracing-subscriber]
version = "^0.3"
features = ["env-filter"]
optional = true

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

[dev-dependencies.rmp-serde]
version = "^1"

[dev-dependencies.serde_json]
version = "^1"

[dev-dependencies.tokio]
version = "^1"
features = [
    "macros",
    "rt-multi-thread",
    "net",
    "io-util",
]

[dev-dependencies.tokio-util]
version = "^0.7"
features = ["codec"]

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

[dev-dependencies.uuid]
version = "^1"
features = [
    "v4",
    "serde",
]