diff --git a/Cargo.lock b/Cargo.lock index c05dd807c..35f47a91e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1970,6 +1970,7 @@ dependencies = [ "anyhow", "gosub_shared", "gosub_webexecutor", + "gosub_webinterop", "serde_json", "thiserror 2.0.9", "v8", @@ -1998,15 +1999,8 @@ dependencies = [ name = "gosub_webexecutor" version = "0.1.0" dependencies = [ - "anyhow", - "colored", - "derive_more", "gosub_shared", - "gosub_v8", - "gosub_webinterop", - "lazy_static", "paste", - "serde_json", "thiserror 2.0.9", ] @@ -2017,7 +2011,6 @@ dependencies = [ "lazy_static", "proc-macro2", "quote", - "serde", "syn 2.0.91", ] diff --git a/crates/gosub_v8/Cargo.toml b/crates/gosub_v8/Cargo.toml index 57cdd4905..78735b4f8 100644 --- a/crates/gosub_v8/Cargo.toml +++ b/crates/gosub_v8/Cargo.toml @@ -11,4 +11,8 @@ gosub_webexecutor = { path = "../gosub_webexecutor" } thiserror = "2.0.9" v8 = "130.0.1" anyhow = "1.0.94" -serde_json = "1.0.134" \ No newline at end of file +serde_json = "1.0.134" + + +[dev-dependencies] +gosub_webinterop = { path = "../gosub_webinterop" } \ No newline at end of file diff --git a/crates/gosub_v8/src/lib.rs b/crates/gosub_v8/src/lib.rs index 5df4897b1..59c1c8b02 100644 --- a/crates/gosub_v8/src/lib.rs +++ b/crates/gosub_v8/src/lib.rs @@ -1,3 +1,5 @@ +#[cfg(test)] +mod tests; mod v8; pub use v8::*; diff --git a/crates/gosub_v8/src/tests.rs b/crates/gosub_v8/src/tests.rs new file mode 100644 index 000000000..7892d5883 --- /dev/null +++ b/crates/gosub_v8/src/tests.rs @@ -0,0 +1 @@ +mod interop; diff --git a/crates/gosub_webexecutor/tests/interop.rs b/crates/gosub_v8/src/tests/interop.rs similarity index 99% rename from crates/gosub_webexecutor/tests/interop.rs rename to crates/gosub_v8/src/tests/interop.rs index d7b2cbb7e..855d89d67 100644 --- a/crates/gosub_webexecutor/tests/interop.rs +++ b/crates/gosub_v8/src/tests/interop.rs @@ -1,8 +1,8 @@ use std::cell::RefCell; use std::rc::Rc; +use crate::V8Engine; use gosub_shared::types::Result; -use gosub_v8::V8Engine; use gosub_webexecutor::js::{ Args, IntoJSValue, IntoRustValue, JSContext, JSFunction, JSFunctionCallBack, JSFunctionCallBackVariadic, JSFunctionVariadic, JSGetterCallback, JSInterop, JSObject, JSRuntime, JSSetterCallback, JSValue, VariadicArgs, diff --git a/crates/gosub_webexecutor/Cargo.toml b/crates/gosub_webexecutor/Cargo.toml index a6c5bb3b7..177fce1b9 100644 --- a/crates/gosub_webexecutor/Cargo.toml +++ b/crates/gosub_webexecutor/Cargo.toml @@ -7,14 +7,5 @@ license = "MIT" [dependencies] gosub_shared = { path = "../gosub_shared" } -colored = "2.2.0" -derive_more = { version = "1", features = ["from", "display"] } -lazy_static = "1.5" thiserror = "2.0.9" -anyhow = "1.0.94" -paste = "1.0.15" - -[dev-dependencies] -serde_json = "1.0.134" -gosub_v8 = { path = "../gosub_v8" } -gosub_webinterop = { path = "../gosub_webinterop" } \ No newline at end of file +paste = "1.0.15" \ No newline at end of file diff --git a/crates/gosub_webinterop/Cargo.toml b/crates/gosub_webinterop/Cargo.toml index c7a27f962..899c73e07 100644 --- a/crates/gosub_webinterop/Cargo.toml +++ b/crates/gosub_webinterop/Cargo.toml @@ -9,7 +9,6 @@ license = "MIT" syn = { version = "2.0.91", features = ["full", "extra-traits"] } quote = { version = "1.0.37", features = [] } proc-macro2 = "1.0.92" -serde = { version = "1.0.216", features = ["derive"] } lazy_static = "1.5.0"