diff options
author | 2025-04-17 11:03:51 +0100 | |
---|---|---|
committer | 2025-04-17 11:03:51 +0100 | |
commit | b9d75f38743113c054be3d97af36bdd2a7dd0d69 (patch) | |
tree | 537623664010d26d5f2574e2d51d03f8c25e08ac /filamento/src/caps.rs | |
parent | cf51dcf052af89f8742d887bde2c93d735309bdd (diff) | |
download | luz-b9d75f38743113c054be3d97af36bdd2a7dd0d69.tar.gz luz-b9d75f38743113c054be3d97af36bdd2a7dd0d69.tar.bz2 luz-b9d75f38743113c054be3d97af36bdd2a7dd0d69.zip |
feat(filamento): compiles on wasm
Diffstat (limited to 'filamento/src/caps.rs')
-rw-r--r-- | filamento/src/caps.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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<Hash, HashNodeConversionError> { #[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(); |