From ef155c40668aba0014263a54f6ce59416b6fc9f7 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Mon, 24 Mar 2025 15:18:57 +0100 Subject: [PATCH] Use rhai fork to remove dep on unmaintained crate --- Cargo.lock | 10 ++-------- node-graph/gstd/Cargo.toml | 8 +------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9245976873..994ea28075 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3400,9 +3400,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" dependencies = [ "cfg-if", - "js-sys", - "wasm-bindgen", - "web-sys", ] [[package]] @@ -5640,13 +5637,11 @@ dependencies = [ [[package]] name = "rhai" version = "1.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce4d759a4729a655ddfdbb3ff6e77fb9eadd902dae12319455557796e435d2a6" +source = "git+https://github.com/TrueDoctor/rhai#7a5ab7bbcbcd101f8aae362448fcde2a32fc2dd1" dependencies = [ "ahash", "bitflags 2.9.0", "getrandom 0.2.15", - "instant", "num-traits", "once_cell", "rhai_codegen", @@ -5659,8 +5654,7 @@ dependencies = [ [[package]] name = "rhai_codegen" version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5a11a05ee1ce44058fa3d5961d05194fdbe3ad6b40f904af764d81b86450e6b" +source = "git+https://github.com/TrueDoctor/rhai#7a5ab7bbcbcd101f8aae362448fcde2a32fc2dd1" dependencies = [ "proc-macro2", "quote", diff --git a/node-graph/gstd/Cargo.toml b/node-graph/gstd/Cargo.toml index 2ad40baf75..9cc046bdf9 100644 --- a/node-graph/gstd/Cargo.toml +++ b/node-graph/gstd/Cargo.toml @@ -89,13 +89,7 @@ web-sys = { workspace = true, optional = true, features = [ # Optional dependencies image-compare = { version = "0.4.1", optional = true } ndarray = "0.16.1" - -[target.'cfg(target_arch = "wasm32")'.dependencies] -rhai = { version = "1.21.0", features = ["serde", "wasm-bindgen"] } - -[target.'cfg(not(target_arch = "wasm32"))'.dependencies] -rhai = { version = "1.21.0", features = ["serde"] } - +rhai = { git = "https://github.com/TrueDoctor/rhai", features = ["serde", "no_time"] } [dev-dependencies] tokio = { workspace = true, features = ["macros"] }