From 8355783b59c2978bc1202f70d176d223b0372349 Mon Sep 17 00:00:00 2001 From: Doug Anderson444 Date: Sat, 11 Jan 2025 21:12:54 -0400 Subject: [PATCH] update func name --- src/layer.rs | 4 ++-- src/lib.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/layer.rs b/src/layer.rs index 105cd07..eb7da5a 100644 --- a/src/layer.rs +++ b/src/layer.rs @@ -743,7 +743,7 @@ mod tests { .collect::>(); // call the increment function - let func = export_instance.func("increment").unwrap(); + let func = export_instance.func("increment-count").unwrap(); const CAPACITY: usize = 1; let mut results = [Value::Bool(false); CAPACITY]; @@ -772,7 +772,7 @@ mod tests { let mut plugin = LayerPlugin::new(WASM, data); - let _ = plugin.call("increment", &[]).unwrap(); + let _ = plugin.call("increment-count", &[]).unwrap(); // current let result = plugin.call("current", &[]).unwrap(); diff --git a/src/lib.rs b/src/lib.rs index 6139ed0..5144057 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,6 @@ #![warn(clippy::all)] #![allow(static_mut_refs)] // dirs crate has warnings that break the CI build. +#![cfg_attr(test, recursion_limit = "512")] // The build file results, builtin components, are included in the build script // Build files are for the demos, so the wasm binaries can be included by default in the build