From 6c22feef3ba34af8524d02bb707fb565359067a1 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 29 Dec 2024 11:50:44 +0100 Subject: [PATCH] Only install wasm-bindgen if needed --- scripts/setup_web.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/setup_web.sh b/scripts/setup_web.sh index 245ff427ab0..d4166a3af2d 100755 --- a/scripts/setup_web.sh +++ b/scripts/setup_web.sh @@ -9,4 +9,6 @@ set -x rustup target add wasm32-unknown-unknown # For generating JS bindings: -cargo install --force --quiet wasm-bindgen-cli --version 0.2.95 +if ! cargo install --list | grep -q 'wasm-bindgen-cli v0.2.95'; then + cargo install --force --quiet wasm-bindgen-cli --version 0.2.95 +fi