polyoxide-ws 0.48.0

The WebSocket kit the polyoxide socket clients share, one copy of each block they would otherwise each carry
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 = "2021"
rust-version = "1.91"
name = "polyoxide-ws"
version = "0.48.0"
authors = ["Aidan Bailey"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The WebSocket kit the polyoxide socket clients share, one copy of each block they would otherwise each carry"
readme = "README.md"
keywords = [
    "trading",
    "websocket",
    "reconnect",
    "backoff",
]
categories = [
    "api-bindings",
    "web-programming::websocket",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dilettante-trading/polyoxide"
resolver = "3"

[package.metadata.polyoxide]
readme = "The socket kit: the TLS install, `Backoff`, `Timing` and its setters, the deadline arithmetic, `WsError`, connect with a timeout, the bare tier, request/answer correlation, the generic `Supervisor` for a venue `Protocol`, and the scripted test server (feature `test-server`)"
notes = ["depends on neither `polyoxide-core` nor `polyoxide-venue`; on a host it builds tokio, tokio-tungstenite and rustls, and on `wasm32` the browser's `WebSocket` through web-sys, with polyoxide-rt, tungstenite, futures-util, thiserror and tracing on both"]

[features]
test-server = []

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

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

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

[dependencies.futures-sink]
version = "0.3"
features = ["alloc"]
default-features = false

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

[dependencies.polyoxide-rt]
version = "0.48.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.41"
features = [
    "macros",
    "sync",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tungstenite]
version = "0.26"
features = ["handshake"]
default-features = false

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.tokio]
version = "1.41"
features = [
    "macros",
    "rt-multi-thread",
    "net",
    "sync",
    "time",
    "test-util",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.41"
features = ["net"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-tungstenite]
version = "0.26"
features = ["rustls-tls-native-roots"]

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.send_wrapper]
version = "0.6"
features = ["futures"]

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
    "BinaryType",
    "CloseEvent",
    "Event",
    "MessageEvent",
    "WebSocket",
]