diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ac575e8d..37dab39a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -92,6 +92,7 @@ jobs: - name: wasm-bindgen uses: jetli/wasm-bindgen-action@v0.1.0 with: + # Keep wasm-bindgen in sync in: setup_web.sh, Cargo.toml, Cargo.lock, rust.yml version: "0.2.104" - run: ./scripts/wasm_bindgen_check.sh --skip-setup diff --git a/Cargo.toml b/Cargo.toml index 419258f8..f61bfc7a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -134,7 +134,7 @@ tokio = "1.47.1" type-map = "0.5.1" unicode_names2 = { version = "2.0.0", default-features = false } unicode-segmentation = "1.12.0" -wasm-bindgen = "=0.2.104" +wasm-bindgen = "0.2.104" # Keep wasm-bindgen in sync in: setup_web.sh, Cargo.toml, Cargo.lock, rust.yml wasm-bindgen-futures = "0.4.54" wayland-cursor = { version = "0.31.11", default-features = false } web-sys = "0.3.81" diff --git a/scripts/setup_web.sh b/scripts/setup_web.sh index 34016992..2c5f87c0 100755 --- a/scripts/setup_web.sh +++ b/scripts/setup_web.sh @@ -9,6 +9,7 @@ set -x rustup target add wasm32-unknown-unknown # For generating JS bindings: +# Keep wasm-bindgen in sync in: setup_web.sh, Cargo.toml, Cargo.lock, rust.yml if ! cargo install --list | grep -q 'wasm-bindgen-cli v0.2.104'; then cargo install --force --quiet wasm-bindgen-cli --version 0.2.104 fi