From 0fa79e9f5b7ed3b6902bdcd7db74a2bf050e3170 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Tue, 28 Jul 2026 19:12:43 +0200 Subject: [PATCH] gpui_web: Point wasm_thread at a fork that fixes the wasm-bindgen init call (#61807) Co-authored-by: Claude Opus 5 (1M context) --- Cargo.lock | 3 +-- crates/gpui_web/Cargo.toml | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6a9ecdf8f9..00c4a0d9bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -20615,8 +20615,7 @@ dependencies = [ [[package]] name = "wasm_thread" version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7516db7f32decdadb1c3b8deb1b7d78b9df7606c5cc2f6241737c2ab3a0258e" +source = "git+https://github.com/zed-industries/wasm_thread?rev=0cf96c7708dfb97ccf3da50347e25edcf75d6937#0cf96c7708dfb97ccf3da50347e25edcf75d6937" dependencies = [ "futures 0.3.32", "js-sys", diff --git a/crates/gpui_web/Cargo.toml b/crates/gpui_web/Cargo.toml index a29ca34060..eee71bafec 100644 --- a/crates/gpui_web/Cargo.toml +++ b/crates/gpui_web/Cargo.toml @@ -31,7 +31,11 @@ web-time.workspace = true console_error_panic_hook.workspace = true js-sys.workspace = true raw-window-handle.workspace = true -wasm_thread = { version = "0.3", features = ["es_modules"], optional = true } +# Forked because upstream is unmaintained and its worker bootstrap still calls +# the wasm-bindgen init function with the positional arguments deprecated in 0.2.93. +wasm_thread = { git = "https://github.com/zed-industries/wasm_thread", rev = "0cf96c7708dfb97ccf3da50347e25edcf75d6937", version = "0.3", features = [ + "es_modules", +], optional = true } web-sys = { version = "0.3", features = [ "console", "Clipboard",