From cf51dcf052af89f8742d887bde2c93d735309bdd Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Sun, 13 Apr 2025 16:45:53 +0100 Subject: feat(lampada): wasm + websockets support --- lampada/Cargo.toml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lampada/Cargo.toml') diff --git a/lampada/Cargo.toml b/lampada/Cargo.toml index c68f9c6..22f133d 100644 --- a/lampada/Cargo.toml +++ b/lampada/Cargo.toml @@ -7,8 +7,15 @@ edition = "2021" futures = "0.3.31" luz = { version = "0.1.0", path = "../luz" } peanuts = { version = "0.1.0", git = "https://bunny.garden/peanuts" } -jid = { version = "0.1.0", path = "../jid", features = ["sqlx"] } +jid = { version = "0.1.0", path = "../jid" } stanza = { version = "0.1.0", path = "../stanza", features = ["xep_0203"] } -tokio = "1.42.0" +tokio = { version = "1.42.0", features = ["macros"] } tracing = "0.1.41" thiserror = "2.0.11" + +[target.'cfg(target_arch = "wasm32")'.dependencies] +tokio = { version = "1.42.0", features = ["macros", "rt", "time"] } +wasm-bindgen-futures = "0.4" + +# [target.'cfg(not(target_arch = "wasm32"))'.dependencies] +# tokio = { version = "1.42.0", features = ["rt-multi-thread"] } -- cgit