aboutsummaryrefslogtreecommitdiffstats
path: root/lampada
diff options
context:
space:
mode:
authorLibravatar Emilis <emilis@puff.place>2025-05-09 17:02:42 +0100
committerLibravatar Emilis <emilis@puff.place>2025-05-09 17:28:31 +0100
commitf4cc2703dda3b81836a5637b55ee4e4e20639313 (patch)
treea0fc97aabf578286a2e1fb679f85c1698444aacf /lampada
parent68044a8b43070d91d76a9fbb04b5275b396ff1ad (diff)
downloadluz-f4cc2703dda3b81836a5637b55ee4e4e20639313.tar.gz
luz-f4cc2703dda3b81836a5637b55ee4e4e20639313.tar.bz2
luz-f4cc2703dda3b81836a5637b55ee4e4e20639313.zip
fix: use tokio_with_wasm fork that doesn't remove
tasks Co-authored-by: cel 🌸 <cel@bunny.garden>
Diffstat (limited to '')
-rw-r--r--lampada/Cargo.toml15
1 files changed, 9 insertions, 6 deletions
diff --git a/lampada/Cargo.toml b/lampada/Cargo.toml
index 37ce2f3..421360c 100644
--- a/lampada/Cargo.toml
+++ b/lampada/Cargo.toml
@@ -12,14 +12,17 @@ luz = { version = "0.1.0", path = "../luz" }
peanuts = { version = "0.1.0", git = "https://bunny.garden/peanuts" }
jid = { version = "0.1.0", path = "../jid" }
stanza = { version = "0.1.0", path = "../stanza", features = ["xep_0203"] }
-tokio = { workspace = true, features = ["macros", "sync"] }
tracing = "0.1.41"
thiserror = "2.0.11"
serde = { version = "1.0.219", features = ["derive"], optional = true }
-[target.'cfg(target_arch = "wasm32")'.dependencies]
-tokio = { workspace = true, features = ["macros", "rt", "time", "sync"] }
-tokio_with_wasm = { version = "0.8.2", features = ["macros", "rt", "time", "sync"] }
+[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
+tokio = { workspace = true, features = ["macros", "sync"] }
-# [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
-# tokio = { version = "1.42.0", features = ["rt-multi-thread"] }
+[target.'cfg(target_arch = "wasm32")'.dependencies]
+tokio_with_wasm = { version = "0.8.2", features = [
+ "macros",
+ "rt",
+ "time",
+ "sync",
+] }