Use rhai fork to remove dep on unmaintained crate

This commit is contained in:
Dennis Kobert 2025-03-24 15:18:57 +01:00
parent 205bb89335
commit ef155c4066
No known key found for this signature in database
GPG key ID: 5A4358CB9530F933
2 changed files with 3 additions and 15 deletions

10
Cargo.lock generated
View file

@ -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",

View file

@ -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"] }