From 4de148be58d89f59536c9e901f29abb43ae55ee3 Mon Sep 17 00:00:00 2001 From: Byson94 Date: Thu, 20 Nov 2025 21:02:23 +0530 Subject: [PATCH] feat: remove debug in action_with_engine --- Cargo.lock | 6 +++--- Cargo.toml | 4 ++-- crates/rhai_impl/src/parser.rs | 9 ++------- tools/generate-rhai-docs/Cargo.toml | 2 +- 4 files changed, 8 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 38f2810..d4bbf7d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -527,7 +527,7 @@ dependencies = [ [[package]] name = "ewwii_plugin_api" -version = "0.6.1" +version = "0.6.7" dependencies = [ "gtk4", "rhai", @@ -1719,9 +1719,9 @@ checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" [[package]] name = "rhai" -version = "1.23.4" +version = "1.23.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "527390cc333a8d2cd8237890e15c36518c26f8b54c903d86fc59f42f08d25594" +checksum = "f4e35aaaa439a5bda2f8d15251bc375e4edfac75f9865734644782c9701b5709" dependencies = [ "ahash", "bitflags 2.9.4", diff --git a/Cargo.toml b/Cargo.toml index 49743f4..f882fcd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ resolver = "2" shared_utils = { version = "0.1.0", path = "crates/shared_utils" } rhai_impl = { version = "0.1.0", path = "crates/rhai_impl" } scan_prop_proc = { version = "0.1.0", path = "proc_macros/scan_prop_proc" } -ewwii_plugin_api = { version = "0.6.1", path = "crates/ewwii_plugin_api" } +ewwii_plugin_api = { version = "0.6.7", path = "crates/ewwii_plugin_api" } anyhow = "1.0.86" ahash = "0.8.12" @@ -36,7 +36,7 @@ once_cell = "1.19" pretty_assertions = "1.4.0" pretty_env_logger = "0.5.0" regex = "1.10.5" -rhai = { version = "1.22.2" } +rhai = "1.23.6" serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } simple-signal = "1.1" diff --git a/crates/rhai_impl/src/parser.rs b/crates/rhai_impl/src/parser.rs index a533d1e..6e8f33d 100644 --- a/crates/rhai_impl/src/parser.rs +++ b/crates/rhai_impl/src/parser.rs @@ -15,7 +15,7 @@ use std::path::Path; use std::rc::Rc; pub struct ParseConfig { - engine: Engine, + pub engine: Engine, all_nodes: Rc>>, keep_signal: Rc>>, } @@ -180,11 +180,6 @@ impl ParseConfig { where F: FnOnce(&mut Engine) -> R, { - let result = f(&mut self.engine); - - let engine_ptr: *const Engine = &self.engine as *const Engine; - log::trace!("Engine pointer after closure: {:p}", engine_ptr); - - result + f(&mut self.engine) } } diff --git a/tools/generate-rhai-docs/Cargo.toml b/tools/generate-rhai-docs/Cargo.toml index e047edc..18afc21 100644 --- a/tools/generate-rhai-docs/Cargo.toml +++ b/tools/generate-rhai-docs/Cargo.toml @@ -5,5 +5,5 @@ edition = "2024" [dependencies] rhai_impl.workspace = true -rhai = "1.22.2" +rhai.workspace = true rhai-autodocs = "0.9.0"