[[bench]]
harness = false
name = "my_benchmark"
[dependencies.async-channel]
version = "1.9.0"
[dependencies.async-trait]
version = "0.1.52"
[dependencies.atomic_enum]
version = "0.2.0"
[dependencies.axum]
optional = true
version = "0.6.1"
[dependencies.axum-core]
optional = true
version = "0.3.0"
[dependencies.base64]
version = "0.21.0"
[dependencies.bytes]
optional = true
version = "1.3.0"
[dependencies.cfg-if]
version = "1.0.0"
[dependencies.enfync]
version = "0.1.0"
[dependencies.fragile]
optional = true
version = "2.0"
[dependencies.futures]
version = "0.3.21"
[dependencies.futures-util]
default-features = false
version = "0.3.25"
[dependencies.http]
version = "0.2.8"
[dependencies.http-body]
optional = true
version = "0.4.5"
[dependencies.hyper]
optional = true
version = "0.14.23"
[dependencies.sha-1]
optional = true
version = "0.10.1"
[dependencies.tokio-native-tls]
optional = true
version = "0.3.1"
[dependencies.tokio-rustls]
optional = true
version = "0.24.1"
[dependencies.tokio-tungstenite]
optional = true
version = "0.20.0"
[dependencies.tokio-tungstenite-wasm]
optional = true
version = "0.2.1"
[dependencies.tracing]
version = "0.1.31"
[dependencies.tungstenite]
version = "0.20.0"
[dependencies.url]
version = "2.2.2"
[dev-dependencies.criterion]
version = "0.4"
[dev-dependencies.rand]
version = "0.8.5"
[dev-dependencies.tokio]
features = ["full"]
version = "1.17.0"
[dev-dependencies.tracing-subscriber]
version = "0.3.9"
[features]
axum = ["server", "dep:axum", "axum-core", "bytes", "futures-util/alloc", "http-body", "hyper", "sha-1"]
client = ["tokio-tungstenite-wasm"]
default = ["native_client", "server"]
native-tls = ["tls", "tokio-native-tls", "tokio-tungstenite/native-tls"]
native_client = ["client", "tokio/rt", "tokio-tungstenite"]
rustls = ["tls", "tokio-rustls", "tokio-tungstenite/rustls-tls-webpki-roots"]
server = ["tokio-tungstenite", "tokio-tungstenite-wasm", "tokio/rt"]
tls = []
tungstenite = ["server"]
wasm_client = ["client", "fragile"]
[lib]
crate-type = ["cdylib", "rlib"]
[package]
authors = ["Grzegorz BaraĆski <me@gbaranski.com>"]
categories = ["asynchronous", "network-programming", "web-programming::websocket"]
description = "WebSockets server & client made easy"
edition = "2021"
keywords = ["websocket", "networking", "async", "wasm"]
license = "MIT"
name = "ezsockets"
readme = "README.md"
repository = "https://github.com/gbaranski/ezsockets"
version = "0.6.4"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[target.'cfg(not(target_family = "wasm"))'.dependencies.tokio]
features = ["sync", "macros", "time"]
version = "1.17.0"
[target.'cfg(target_family = "wasm")'.dependencies.getrandom]
features = ["js"]
version = "0.2"
[target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen-futures]
version = "0.4"
[target.'cfg(target_family = "wasm")'.dependencies.wasmtimer]
version = "0.2.0"
[[test]]
name = "axum"
required-features = ["axum"]
[[test]]
name = "tungstenite"
required-features = ["tungstenite"]