[package] name = "tokio-tungstenite_wasi" description = "Tokio binding for Tungstenite, the Lightweight stream-based WebSocket implementation" categories = ["web-programming::websocket", "network-programming", "asynchronous", "concurrency"] keywords = ["websocket", "io", "web"] authors = ["Daniel Abramov ", "Alexey Galakhov "] license = "MIT" homepage = "https://github.com/WasmEdge/tokio-tungstenite" documentation = "https://docs.rs/tokio-tungstenite/0.18.0" repository = "https://github.com/WasmEdge/tokio-tungstenite" version = "0.18.0" edition = "2018" include = ["examples/**/*", "src/**/*", "LICENSE", "README.md", "CHANGELOG.md"] [lib] name = "tokio_tungstenite" path = "src/lib.rs" [package.metadata.docs.rs] features = ["native-tls", "__rustls-tls"] [features] default = ["connect", "handshake"] connect = ["stream", "tokio_wasi/net", "handshake"] handshake = ["tungstenite/handshake"] native-tls = ["native-tls-crate", "tokio-native-tls", "stream", "tungstenite/native-tls", "handshake"] native-tls-vendored = ["native-tls", "native-tls-crate/vendored", "tungstenite/native-tls-vendored"] rustls-tls-native-roots = ["__rustls-tls", "rustls-native-certs"] rustls-tls-webpki-roots = ["__rustls-tls", "webpki-roots"] __rustls-tls = ["rustls", "tokio-rustls", "stream", "tungstenite/__rustls-tls", "webpki", "handshake"] stream = [] [dependencies] log = "0.4" futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] } tokio_wasi = { version = "1", default-features = false, features = ["io-util", "rt"] } [dependencies.tungstenite] version = "0.18.0" default-features = false [dependencies.native-tls-crate] optional = true package = "native-tls" version = "0.2.7" [dependencies.rustls] optional = true version = "0.20.0" [dependencies.rustls-native-certs] optional = true version = "0.6.1" [dependencies.tokio-native-tls] optional = true version = "0.3.0" [dependencies.tokio-rustls] optional = true version = "0.23.0" [dependencies.webpki] optional = true version = "0.22.0" [dependencies.webpki-roots] optional = true version = "0.22.1" [dev-dependencies] futures-channel = "0.3" hyper = { version = "0.14", default-features = false, features = ["http1", "server", "tcp"] } tokio = { version = "1.0.0", default-features = false, features = ["io-std", "macros", "net", "rt-multi-thread", "time"] } url = "2.0.0" env_logger = "0.9" [[example]] name = "autobahn-client" required-features = ["connect"] [[example]] name = "autobahn-server" required-features = ["handshake"] [[example]] name = "client" required-features = ["connect"] [[example]] name = "echo-server" required-features = ["handshake"] [[example]] name = "server-custom-accept" required-features = ["handshake"] [[example]] name = "server" required-features = ["handshake"] [[example]] name = "interval-server" required-features = ["handshake"]