[dependencies.futures]
version = "0.3"
[dependencies.gloo-net]
optional = true
version = "0.4"
[dependencies.pin-project]
version = "1"
[dependencies.tokio]
optional = true
version = "1"
[dependencies.tungstenite]
optional = true
version = "0.20"
[dev-dependencies.tokio]
features = ["full"]
version = "1"
[dev-dependencies.tokio-tungstenite]
version = "0.20"
[[example]]
name = "echo_server"
path = "examples/echo_server.rs"
required-features = ["tokio", "tungstenite"]
[[example]]
name = "print_self_server"
path = "examples/print_self_server.rs"
required-features = ["tokio", "tungstenite"]
[[example]]
name = "std_io_client"
path = "examples/std_io_client.rs"
required-features = ["tokio", "tungstenite"]
[features]
gloo = ["dep:gloo-net"]
tokio = ["dep:tokio"]
tungstenite = ["dep:tungstenite"]
[package]
authors = ["idkana <ifidkidknow@gmail.com>"]
categories = ["network-programming", "asynchronous", "web-programming::websocket", "wasm"]
description = "A layer over WebSocket enables carrying byte stream, for both native and WebAssembly."
edition = "2021"
exclude = ["/examples/web-client"]
homepage = "https://github.com/idkidknow/stream-ws"
keywords = ["websocket", "stream", "io", "async", "wasm"]
license = "MIT OR Apache-2.0"
name = "stream-ws"
readme = "README.md"
repository = "https://github.com/idkidknow/stream-ws"
version = "0.1.1"
[package.metadata.docs.rs]
all-features = true
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs"]