# 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 = "reqwest-websocket" version = "0.4.3" authors = ["Janosch Gräf "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "WebSocket connections with reqwest" homepage = "https://github.com/jgraef/reqwest-websocket" readme = "README.md" keywords = [ "websocket", "reqwest", "stream", ] categories = [ "network-programming", "web-programming::http-client", "web-programming::websocket", ] license = "MIT" repository = "https://github.com/jgraef/reqwest-websocket" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "reqwest_websocket" path = "src/lib.rs" [[example]] name = "hello_world" path = "examples/hello_world.rs" [dependencies.futures-util] version = "0.3" features = ["sink"] default-features = false [dependencies.reqwest] version = "0.12" default-features = false [dependencies.serde] version = "1.0" optional = true default-features = false [dependencies.serde_json] version = "1.0" features = ["alloc"] optional = true default-features = false [dependencies.thiserror] version = "1" [dependencies.tracing] version = "0.1" [dev-dependencies.futures-util] version = "0.3" features = [ "sink", "alloc", ] default-features = false [dev-dependencies.reqwest] version = "0.12" features = ["default-tls"] [dev-dependencies.serde] version = "1.0" features = ["derive"] [dev-dependencies.tokio] version = "1" features = [ "macros", "rt", ] [features] json = [ "dep:serde", "dep:serde_json", ] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.async-tungstenite] version = "0.28" default-features = false [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-util] version = "0.7" features = ["compat"] default-features = false [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tungstenite] version = "0.24" features = ["handshake"] default-features = false [target.'cfg(target_arch = "wasm32")'.dependencies.tokio] version = "1" features = [ "sync", "macros", ] default-features = false [target.'cfg(target_arch = "wasm32")'.dependencies.web-sys] version = "0.3" features = [ "WebSocket", "CloseEvent", "ErrorEvent", "Event", "MessageEvent", "BinaryType", ] [target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-futures] version = "0.4" [target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test] version = "0.3"