ezsockets 0.7.2

WebSockets server & client made easy
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 = "ezsockets"
version = "0.7.2"
authors = ["Grzegorz BaraƄski <me@gbaranski.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WebSockets server & client made easy"
readme = "README.md"
keywords = [
    "websocket",
    "networking",
    "async",
    "wasm",
]
categories = [
    "asynchronous",
    "network-programming",
    "web-programming::websocket",
]
license = "MIT"
repository = "https://github.com/gbaranski/ezsockets"

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

[features]
axum = [
    "server",
    "dep:axum",
    "axum-core",
    "futures-util/alloc",
    "http-body",
    "hyper",
    "hyper-util",
    "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]
name = "ezsockets"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[test]]
name = "axum"
path = "tests/axum.rs"
required-features = ["axum"]

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

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

[[test]]
name = "graceful_shutdown"
path = "tests/graceful_shutdown.rs"
required-features = [
    "tungstenite",
    "native_client",
]

[[test]]
name = "tungstenite"
path = "tests/tungstenite.rs"
required-features = ["tungstenite"]

[[bench]]
name = "ezsockets_server"
path = "benches/ezsockets_server.rs"

[[bench]]
name = "my_benchmark"
path = "benches/my_benchmark.rs"
harness = false
required-features = [
    "server",
    "tungstenite",
]

[[bench]]
name = "tungstenite_server"
path = "benches/tungstenite_server.rs"

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

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

[dependencies.atomic_enum]
version = "0.2.0"

[dependencies.axum]
version = "0.8.1"
optional = true

[dependencies.axum-core]
version = "0.5.0"
optional = true

[dependencies.base64]
version = "0.21.0"

[dependencies.bytes]
version = "1.3.0"

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

[dependencies.enfync]
version = "0.1"

[dependencies.fragile]
version = "2.0"
optional = true

[dependencies.futures]
version = "0.3.21"

[dependencies.futures-util]
version = "0.3.25"
default-features = false

[dependencies.http]
version = "1.2.0"

[dependencies.http-body]
version = "1.0.1"
optional = true

[dependencies.hyper]
version = "1.1.0"
optional = true

[dependencies.hyper-util]
version = "0.1.10"
optional = true

[dependencies.sha-1]
version = "0.10.1"
optional = true

[dependencies.tokio-native-tls]
version = "0.3.1"
optional = true

[dependencies.tokio-rustls]
version = "0.26.1"
optional = true

[dependencies.tokio-tungstenite]
version = "0.26.1"
optional = true

[dependencies.tokio-tungstenite-wasm]
version = "0.6.1"
optional = true

[dependencies.tracing]
version = "0.1.31"

[dependencies.tungstenite]
version = "0.26.1"

[dependencies.url]
version = "2.2.2"

[dev-dependencies.criterion]
version = "0.4"

[dev-dependencies.rand]
version = "0.8.5"

[dev-dependencies.tokio]
version = "1.17.0"
features = ["full"]

[dev-dependencies.tracing-subscriber]
version = "0.3.9"

[target.'cfg(not(target_family = "wasm"))'.dependencies.tokio]
version = "1.17.0"
features = [
    "sync",
    "macros",
    "time",
]

[target.'cfg(target_family = "wasm")'.dependencies.getrandom]
version = "0.2"
features = ["js"]

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

[target.'cfg(target_family = "wasm")'.dependencies.wasmtimer]
version = "0.2.0"