From eae26334f9c37141f91adeeca36b0ec551219e97 Mon Sep 17 00:00:00 2001 From: afshan ahmed khan Date: Fri, 14 Jun 2024 16:32:02 +0530 Subject: [PATCH] Use console error panic hook only in nodejs --- JS/jsonnet/Cargo.toml | 6 ++++++ JS/wasm/crates/arakoo-core/Cargo.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/JS/jsonnet/Cargo.toml b/JS/jsonnet/Cargo.toml index 09d71046e..8afe8984c 100644 --- a/JS/jsonnet/Cargo.toml +++ b/JS/jsonnet/Cargo.toml @@ -20,6 +20,12 @@ wasm-bindgen-file-reader = "1" regex = "1.10.3" js-sys = "0.3.69" console_error_panic_hook = "0.1.7" +urlencoding = "2.1.3" [dev-dependencies] wasm-bindgen-test = "0.3.34" + +[features] +nodejs = [] +default = ["nodejs"] + diff --git a/JS/wasm/crates/arakoo-core/Cargo.toml b/JS/wasm/crates/arakoo-core/Cargo.toml index 9e8b34c58..16997c078 100644 --- a/JS/wasm/crates/arakoo-core/Cargo.toml +++ b/JS/wasm/crates/arakoo-core/Cargo.toml @@ -24,6 +24,6 @@ bytes = { version = "1.6.0", features = ["serde"] } fastrand = "2.1.0" log = {version = "*"} env_logger = {version = "*"} -arakoo-jsonnet ={ path = "../../../jsonnet"} +arakoo-jsonnet ={ path = "../../../jsonnet", default-features = false} jrsonnet-gcmodule = { version = "0.3.6" } jrsonnet-evaluator = { version = "0.5.0-pre95" }