From b9d75f38743113c054be3d97af36bdd2a7dd0d69 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Thu, 17 Apr 2025 11:03:51 +0100 Subject: feat(filamento): compiles on wasm --- filamento/src/caps.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'filamento/src/caps.rs') diff --git a/filamento/src/caps.rs b/filamento/src/caps.rs index 819e669..46cd903 100644 --- a/filamento/src/caps.rs +++ b/filamento/src/caps.rs @@ -336,7 +336,7 @@ pub fn node_to_hash(node: String) -> Result { #[cfg(test)] mod tests { - use peanuts::{Writer, element::IntoElement}; + use peanuts::{Writer, element::IntoElement, loggable::Loggable}; use stanza::{ xep_0004::{Field, FieldType, Value, X, XType}, xep_0030::info::{Feature, Identity}, @@ -344,6 +344,7 @@ mod tests { use super::*; + #[cfg(not(target_arch = "wasm32"))] #[tokio::test] async fn test_caps() { tracing_subscriber::fmt().init(); @@ -448,6 +449,7 @@ mod tests { writer.write(&test_caps).await.unwrap(); } + #[cfg(not(target_arch = "wasm32"))] #[tokio::test] pub async fn test_gen_client_caps() { let stdout = tokio::io::stdout(); -- cgit