[dependencies.anyhow]
default-features = false
features = ["std"]
optional = true
version = "1.0"
[dependencies.futures-util]
default-features = false
version = "0.3.30"
[dependencies.web-time]
default-features = false
optional = true
version = "1.0"
[features]
spawn = ["tokio/rt", "dep:wasm-bindgen-futures"]
time = ["dep:gloo-timers", "tokio/time", "dep:web-time"]
websocket = ["dep:anyhow", "futures-util/sink", "dep:gloo-net", "tokio/net", "dep:tokio-tungstenite"]
[lib]
name = "waaa"
path = "src/lib.rs"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["api-bindings", "asynchronous", "development-tools::ffi", "wasm", "web-programming"]
description = "WebAssembly, Abstracted Away"
documentation = "https://docs.rs/waaa"
edition = "2021"
homepage = "https://github.com/Ekleog/waaa"
keywords = ["async", "api", "web", "wasm", "webassembly"]
license = "MIT OR Apache-2.0"
name = "waaa"
readme = "README.md"
repository = "https://github.com/Ekleog/waaa"
version = "0.2.1"
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.gloo-net]
default-features = false
features = ["websocket"]
optional = true
version = "0.5.0"
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.gloo-timers]
default-features = false
features = ["futures"]
optional = true
version = "0.3.0"
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.wasm-bindgen-futures]
default-features = false
optional = true
version = "0.4.41"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))'.dependencies.tokio]
default-features = false
features = ["net", "rt", "time"]
optional = true
version = "1.36"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))'.dependencies.tokio-tungstenite]
default-features = false
features = ["connect", "stream"]
optional = true
version = "0.21.0"