async-wsocket 0.13.2

A convenience library for using websockets both in native and WASM environments! Include embedded tor client support.
Documentation
# 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.13.2"
authors = ["Yuki Kishimoto <yukikishimoto@protonmail.com>"]
build = false
autolib = 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"

[features]
default = []
socks = ["dep:tokio-socks"]
tor = [
    "tokio/sync",
    "dep:arti-client",
    "dep:tor-rtcompat",
]
tor-launch-service = [
    "tor",
    "arti-client?/onion-service-service",
    "dep:tor-hsservice",
    "dep:tor-hsrproxy",
]

[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",
    "tor-launch-service",
]

[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",
    "rt-multi-thread",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.arti-client]
version = "0.28"
features = [
    "onion-service-client",
    "rustls",
    "static-sqlite",
    "tokio",
]
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = [
    "net",
    "time",
    "macros",
    "rt",
]

[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.26"
features = ["rustls-tls-webpki-roots"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tor-hsrproxy]
version = "0.28"
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tor-hsservice]
version = "0.28"
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tor-rtcompat]
version = "0.28"
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",
]