workflow-websocket 0.19.0

WebSocket crate (client and server) providing an async Rust API that functions uniformly in native and in browser (WASM32) environments. This crate allows you to develop WebSocket-driven data exchange that function uniformly in web and desktop applications.
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 = "workflow-websocket"
version = "0.19.0"
authors = ["WORKFLOW-RS developers"]
build = false
exclude = [
    "/.*",
    "/test",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
WebSocket crate (client and server) providing an async Rust API
that functions uniformly in native and in browser (WASM32)
environments. This crate allows you to develop WebSocket-driven
data exchange that function uniformly in web and desktop applications.
"""
readme = "README.md"
keywords = [
    "wasm",
    "websocket",
    "browser",
    "rpc",
]
categories = [
    "web-programming::websocket",
    "web-programming::http-client",
    "api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/workflow-rs/workflow-rs"
resolver = "2"

[features]
default = ["native-tls"]
delay-reconnect = []
native-tls = ["tokio-tungstenite/native-tls"]
native-tls-vendored = ["tokio-tungstenite/native-tls-vendored"]
ping-pong = []
rustls-tls-native-roots = ["tokio-tungstenite/rustls-tls-native-roots"]
rustls-tls-webpki-roots = ["tokio-tungstenite/rustls-tls-webpki-roots"]
wasm32-sdk = []

[lib]
name = "workflow_websocket"
crate-type = [
    "cdylib",
    "lib",
]
path = "src/lib.rs"
doctest = false

[dependencies.async-channel]
version = "2.0.0"

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

[dependencies.cfg-if]
version = "1.0.0"

[dependencies.downcast-rs]
version = "1.2.0"

[dependencies.futures]
version = "0.3.31"

[dependencies.futures-util]
version = "0.3.29"
features = [
    "sink",
    "std",
]
default-features = false

[dependencies.js-sys]
version = "0.3.77"

[dependencies.thiserror]
version = "2.0.11"

[dependencies.triggered]
version = "0.1.2"

[dependencies.wasm-bindgen]
version = "0.2.100"

[dependencies.workflow-core]
version = "0.19.0"
default-features = false

[dependencies.workflow-log]
version = "0.19.0"
default-features = false

[dependencies.workflow-task]
version = "0.19.0"
default-features = false

[dependencies.workflow-wasm]
version = "0.19.0"
default-features = false

[target.'cfg(not(target_arch = "bpf"))'.dependencies.web-sys]
version = "0.3.77"
features = [
    "console",
    "BinaryType",
    "Blob",
    "CloseEvent",
    "DomException",
    "ErrorEvent",
    "FileReader",
    "MessageEvent",
    "ProgressEvent",
    "WebSocket",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ahash]
version = "0.8.6"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.33.0"
features = [
    "io-util",
    "time",
    "sync",
    "macros",
    "rt",
    "rt-multi-thread",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-tungstenite]
version = "0.29.0"
features = [
    "handshake",
    "connect",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tungstenite]
version = "0.29.0"
default-features = false

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

[lints.clippy]
multiple_bound_locations = "allow"