# 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 = "async-wsocket" version = "0.11.0" authors = ["Yuki Kishimoto "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A convenience library for using websockets both in native and WASM environments! Include embedded tor client support." homepage = "https://github.com/yukibtc/async-wsocket" readme = "README.md" keywords = [ "async", "tokio", "wasm", "websocket", ] categories = [ "asynchronous", "network-programming", "api-bindings", "wasm", "web-programming::websocket", ] license = "MIT" repository = "https://github.com/yukibtc/async-wsocket.git" [lib] name = "async_wsocket" path = "src/lib.rs" [[example]] name = "client" path = "examples/client.rs" required-features = ["tor"] [[example]] name = "hs-server" path = "examples/hs-server.rs" required-features = ["tor"] [dependencies.futures-util] version = "0.3" features = [ "std", "sink", ] default-features = false [dependencies.url] version = "2.5" default-features = false [dev-dependencies.tokio] version = "1" features = ["macros"] [dev-dependencies.tracing-subscriber] version = "0.3" features = ["env-filter"] [features] default = [] socks = ["dep:tokio-socks"] tor = [ "dep:arti-client", "dep:tor-hsservice", "dep:tor-hsrproxy", "dep:tor-rtcompat", ] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.arti-client] version = "0.22" features = [ "onion-service-client", "onion-service-service", "rustls", "static-sqlite", "tokio", ] optional = true default-features = false [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio] version = "1" features = [ "net", "sync", "time", ] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-rustls] version = "0.26" features = [ "ring", "tls12", ] default-features = false [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-socks] version = "0.5" optional = true [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-tungstenite] version = "0.24" features = ["rustls-tls-webpki-roots"] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tor-hsrproxy] version = "0.22" optional = true default-features = false [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tor-hsservice] version = "0.22" optional = true default-features = false [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tor-rtcompat] version = "0.22" features = [ "rustls", "tokio", ] optional = true default-features = false [target.'cfg(target_arch = "wasm32")'.dependencies.async-utility] version = "0.3" [target.'cfg(target_arch = "wasm32")'.dependencies.futures] version = "0.3" features = ["std"] default-features = false [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 = [ "BinaryType", "Blob", "CloseEvent", "ErrorEvent", "MessageEvent", "DomException", "WebSocket", ]