# 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 = "tokio-tungstenite-wasm" version = "0.3.1" description = "A wrapper around websys and tokio-tungstenite that makes it easy to use websockets cross-platform." homepage = "https://github.com/TannerRogalsky/tokio-tungstenite-wasm" readme = "README.md" keywords = [ "websocket", "cross-platform", "wasm", "tokio", ] categories = [ "wasm", "web-programming::websocket", "asynchronous", "network-programming", ] license-file = "LICENSE" repository = "https://github.com/TannerRogalsky/tokio-tungstenite-wasm" [dependencies.futures-util] version = "0.3" features = [ "sink", "std", ] default-features = false [dependencies.http] version = "1.1" [dependencies.httparse] version = "1.3" [dependencies.thiserror] version = "1.0" [dev-dependencies.assert-impl] version = "0.1" [features] __rustls-tls = ["dep:rustls"] native-tls = [ "tokio-tungstenite/native-tls", "dep:native-tls", ] native-tls-vendored = [ "native-tls", "tokio-tungstenite/native-tls-vendored", ] rustls-tls-native-roots = [ "__rustls-tls", "tokio-tungstenite/rustls-tls-native-roots", ] rustls-tls-webpki-roots = [ "__rustls-tls", "tokio-tungstenite/rustls-tls-webpki-roots", ] [target."cfg(not(target_arch = \"wasm32\"))".dependencies.native-tls] version = "0.2" optional = true default-features = false [target."cfg(not(target_arch = \"wasm32\"))".dependencies.rustls] version = "0.22" optional = true default-features = false [target."cfg(not(target_arch = \"wasm32\"))".dependencies.tokio] version = "1.36" features = ["net"] default-features = false [target."cfg(not(target_arch = \"wasm32\"))".dependencies.tokio-tungstenite] version = "0.21" [target."cfg(not(target_arch = \"wasm32\"))".dev-dependencies.rand] version = "0.8" [target."cfg(not(target_arch = \"wasm32\"))".dev-dependencies.tokio] version = "1.36" features = ["full"] [target."cfg(target_arch = \"wasm32\")".dependencies.futures-channel] version = "0.3" [target."cfg(target_arch = \"wasm32\")".dependencies.js-sys] version = "0.3" [target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen] version = "0.2" [target."cfg(target_arch = \"wasm32\")".dependencies.web-sys] version = "0.3" features = [ "WebSocket", "MessageEvent", "CloseEvent", "Event", "ErrorEvent", "BinaryType", "Blob", ]