[[bench]]
harness = false
name = "buffer"
path = "benches/buffer.rs"
[[bench]]
harness = false
name = "write"
path = "benches/write.rs"
[dependencies.byteorder]
version = "1.3.2"
[dependencies.bytes]
version = "1.0"
[dependencies.data-encoding]
optional = true
version = "2"
[dependencies.http]
optional = true
version = "1.0"
[dependencies.httparse]
optional = true
version = "1.3.4"
[dependencies.log]
version = "0.4.8"
[dependencies.native-tls-crate]
optional = true
package = "native-tls"
version = "0.2.3"
[dependencies.rand]
version = "0.8.0"
[dependencies.rustls]
default-features = false
features = ["std"]
optional = true
version = "0.23.0"
[dependencies.rustls-native-certs]
optional = true
version = "0.7.0"
[dependencies.rustls-pki-types]
optional = true
version = "1.0"
[dependencies.sha1]
optional = true
version = "0.10"
[dependencies.thiserror]
version = "1.0.23"
[dependencies.url]
optional = true
version = "2.1.0"
[dependencies.utf-8]
version = "0.7.5"
[dependencies.webpki-roots]
optional = true
version = "0.26"
[dev-dependencies.criterion]
version = "0.5.0"
[dev-dependencies.env_logger]
version = "0.10.0"
[dev-dependencies.input_buffer]
version = "0.5.0"
[dev-dependencies.rand]
version = "0.8.4"
[dev-dependencies.socket2]
version = "0.5.5"
[[example]]
name = "autobahn-client"
path = "examples/autobahn-client.rs"
required-features = ["handshake"]
[[example]]
name = "autobahn-server"
path = "examples/autobahn-server.rs"
required-features = ["handshake"]
[[example]]
name = "callback-error"
path = "examples/callback-error.rs"
required-features = ["handshake"]
[[example]]
name = "client"
path = "examples/client.rs"
required-features = ["handshake"]
[[example]]
name = "server"
path = "examples/server.rs"
required-features = ["handshake"]
[[example]]
name = "srv_accept_unmasked_frames"
path = "examples/srv_accept_unmasked_frames.rs"
required-features = ["handshake"]
[features]
__rustls-tls = ["rustls", "rustls-pki-types"]
default = ["handshake"]
handshake = ["data-encoding", "http", "httparse", "sha1"]
native-tls = ["native-tls-crate"]
native-tls-vendored = ["native-tls", "native-tls-crate/vendored"]
rustls-tls-native-roots = ["__rustls-tls", "rustls-native-certs"]
rustls-tls-webpki-roots = ["__rustls-tls", "webpki-roots"]
url = ["dep:url"]
[lib]
name = "tungstenite"
path = "src/lib.rs"
[package]
authors = ["Alexey Galakhov", "Daniel Abramov"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["web-programming::websocket", "network-programming"]
description = "Lightweight stream-based WebSocket implementation"
documentation = "https://docs.rs/tungstenite/0.24.0"
edition = "2018"
homepage = "https://github.com/snapview/tungstenite-rs"
include = ["benches/**/*", "src/**/*", "examples/**/*", "LICENSE-*", "README.md", "CHANGELOG.md"]
keywords = ["websocket", "io", "web"]
license = "MIT OR Apache-2.0"
name = "tungstenite"
readme = "README.md"
repository = "https://github.com/snapview/tungstenite-rs"
rust-version = "1.63"
version = "0.24.0"
[package.metadata.docs.rs]
all-features = true