reqwest-websocket 0.6.0

WebSocket connections with reqwest
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"
name = "reqwest-websocket"
version = "0.6.0"
authors = ["Janosch Gräf <janosch.graef@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WebSocket connections with reqwest"
homepage = "https://github.com/jgraef/reqwest-websocket"
readme = "README.md"
keywords = [
    "websocket",
    "reqwest",
    "stream",
]
categories = [
    "network-programming",
    "web-programming::http-client",
    "web-programming::websocket",
]
license = "MIT"
repository = "https://github.com/jgraef/reqwest-websocket"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
full = [
    "json",
    "middleware",
]
json = [
    "dep:serde",
    "dep:serde_json",
]
middleware = ["dep:reqwest-middleware"]

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

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

[dependencies.bytes]
version = "1.10.1"

[dependencies.futures-util]
version = ">=0.3.31"
features = ["sink"]
default-features = false

[dependencies.reqwest]
version = "0.13"
default-features = false

[dependencies.reqwest-middleware]
version = "0.5.0"
optional = true

[dependencies.serde]
version = "1.0"
optional = true
default-features = false

[dependencies.serde_json]
version = "1.0"
features = ["alloc"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.async-trait]
version = "0.1.89"

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

[dev-dependencies.http]
version = "1.4.0"

[dev-dependencies.reqwest]
version = "0.13"
features = ["default-tls"]

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.async-tungstenite]
version = "0.32"
features = ["futures-03-sink"]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-util]
version = "0.7"
features = ["compat"]
default-features = false

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

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.axum]
version = "0.8.7"
features = ["ws"]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
    "net",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.tokio]
version = "1"
features = [
    "sync",
    "macros",
]
default-features = false

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

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
]

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

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