From f23bce2e8efad3344fdc07a36cc39f1b299cb578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vojt=C3=A1=C5=A1ek?= Date: Wed, 30 Oct 2024 22:17:29 +0100 Subject: [PATCH] fix wasm build --- .cargo/config.toml | 2 ++ Cargo.toml | 2 +- debugger-web/Cargo.toml | 16 ++++++++-------- gb-web/Cargo.toml | 4 ++-- 4 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..2f89244 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[target.wasm32-unknown-unknown] +rustflags = "-C target-feature=+bulk-memory" diff --git a/Cargo.toml b/Cargo.toml index c49f3a3..e3ba0a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace] -members = ["debugger", "debugger-web" , "gb", "integration-tests", "gb-web"] +members = ["debugger", "debugger-web", "gb", "integration-tests", "gb-web"] resolver = "2" [profile.release] diff --git a/debugger-web/Cargo.toml b/debugger-web/Cargo.toml index e09a790..7d1978d 100644 --- a/debugger-web/Cargo.toml +++ b/debugger-web/Cargo.toml @@ -14,16 +14,16 @@ crate-type = ["cdylib"] [dependencies] debugger = { path = "../debugger" } eframe = "0.29.1" -env_logger = "0.11.1" -js-sys = "0.3.68" -log = "0.4.20" -serde = { version = "1.0.196", features = ["derive"] } -serde-wasm-bindgen = "0.6.3" -wasm-bindgen = { version = "0.2.91", features = ["serde-serialize"] } -wasm-bindgen-futures = "0.4.41" +env_logger = "0.11.5" +js-sys = "0.3.72" +log = "0.4.22" +serde = { version = "1.0.214", features = ["derive"] } +serde-wasm-bindgen = "0.6.5" +wasm-bindgen = { version = "0.2.95", features = ["serde-serialize"] } +wasm-bindgen-futures = "0.4.45" [dependencies.web-sys] -version = "0.3.68" +version = "0.3.72" features = [ 'Headers', 'Request', diff --git a/gb-web/Cargo.toml b/gb-web/Cargo.toml index c795943..dacfec8 100644 --- a/gb-web/Cargo.toml +++ b/gb-web/Cargo.toml @@ -15,6 +15,6 @@ gb = { path = "../gb" } console_error_panic_hook = "0.1.7" log = "0.4.22" -js-sys = "0.3.70" -wasm-bindgen = "0.2.93" +js-sys = "0.3.72" +wasm-bindgen = "0.2.95" wasm-logger = "0.2.0"