feat: remove debug in action_with_engine
This commit is contained in:
6
Cargo.lock
generated
6
Cargo.lock
generated
@@ -527,7 +527,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ewwii_plugin_api"
|
name = "ewwii_plugin_api"
|
||||||
version = "0.6.1"
|
version = "0.6.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gtk4",
|
"gtk4",
|
||||||
"rhai",
|
"rhai",
|
||||||
@@ -1719,9 +1719,9 @@ checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rhai"
|
name = "rhai"
|
||||||
version = "1.23.4"
|
version = "1.23.6"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "527390cc333a8d2cd8237890e15c36518c26f8b54c903d86fc59f42f08d25594"
|
checksum = "f4e35aaaa439a5bda2f8d15251bc375e4edfac75f9865734644782c9701b5709"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ahash",
|
"ahash",
|
||||||
"bitflags 2.9.4",
|
"bitflags 2.9.4",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ resolver = "2"
|
|||||||
shared_utils = { version = "0.1.0", path = "crates/shared_utils" }
|
shared_utils = { version = "0.1.0", path = "crates/shared_utils" }
|
||||||
rhai_impl = { version = "0.1.0", path = "crates/rhai_impl" }
|
rhai_impl = { version = "0.1.0", path = "crates/rhai_impl" }
|
||||||
scan_prop_proc = { version = "0.1.0", path = "proc_macros/scan_prop_proc" }
|
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"
|
anyhow = "1.0.86"
|
||||||
ahash = "0.8.12"
|
ahash = "0.8.12"
|
||||||
@@ -36,7 +36,7 @@ once_cell = "1.19"
|
|||||||
pretty_assertions = "1.4.0"
|
pretty_assertions = "1.4.0"
|
||||||
pretty_env_logger = "0.5.0"
|
pretty_env_logger = "0.5.0"
|
||||||
regex = "1.10.5"
|
regex = "1.10.5"
|
||||||
rhai = { version = "1.22.2" }
|
rhai = "1.23.6"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
simple-signal = "1.1"
|
simple-signal = "1.1"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ use std::path::Path;
|
|||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
||||||
pub struct ParseConfig {
|
pub struct ParseConfig {
|
||||||
engine: Engine,
|
pub engine: Engine,
|
||||||
all_nodes: Rc<RefCell<Vec<WidgetNode>>>,
|
all_nodes: Rc<RefCell<Vec<WidgetNode>>>,
|
||||||
keep_signal: Rc<RefCell<Vec<u64>>>,
|
keep_signal: Rc<RefCell<Vec<u64>>>,
|
||||||
}
|
}
|
||||||
@@ -180,11 +180,6 @@ impl ParseConfig {
|
|||||||
where
|
where
|
||||||
F: FnOnce(&mut Engine) -> R,
|
F: FnOnce(&mut Engine) -> R,
|
||||||
{
|
{
|
||||||
let result = f(&mut self.engine);
|
f(&mut self.engine)
|
||||||
|
|
||||||
let engine_ptr: *const Engine = &self.engine as *const Engine;
|
|
||||||
log::trace!("Engine pointer after closure: {:p}", engine_ptr);
|
|
||||||
|
|
||||||
result
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ edition = "2024"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rhai_impl.workspace = true
|
rhai_impl.workspace = true
|
||||||
rhai = "1.22.2"
|
rhai.workspace = true
|
||||||
rhai-autodocs = "0.9.0"
|
rhai-autodocs = "0.9.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user