diff --git a/test/rust/bindgen_greeter/Cargo.toml b/test/rust/bindgen_greeter/Cargo.toml index a4c57b38669af..e85537f374191 100644 --- a/test/rust/bindgen_greeter/Cargo.toml +++ b/test/rust/bindgen_greeter/Cargo.toml @@ -10,4 +10,4 @@ path = "src/main.rs" # 0.2.128 is the first release whose emscripten glue does not need an aggregate # `wasmExports` object (wasm-bindgen/wasm-bindgen#5270); must match the wasm-bindgen-cli # version exactly. -wasm-bindgen = "0.2.128" +wasm-bindgen = "=0.2.128" diff --git a/test/test_other.py b/test/test_other.py index 03f4579ea107c..c8e595b889f7f 100644 --- a/test/test_other.py +++ b/test/test_other.py @@ -15364,7 +15364,7 @@ def test_wasm_bindgen_integration(self): copytree(test_file('rust/bindgen_integration'), '.') # Pin the library to the (managed) wasm-bindgen-cli version on PATH; # wasm-bindgen requires the CLI and the library to match exactly. - self.run_process(['cargo', 'add', 'wasm-bindgen@0.2.128']) + self.run_process(['cargo', 'add', 'wasm-bindgen@=0.2.128']) self.run_process(['cargo', 'build']) lib = 'target/wasm32-unknown-emscripten/debug/libbindgen_integration.a' self.assertExists(lib) @@ -15460,7 +15460,7 @@ def test_wasm_bindgen_tsd_multi_return(self): Ok(42) } ''') - self.run_process(['cargo', 'add', 'wasm-bindgen@0.2.128']) + self.run_process(['cargo', 'add', 'wasm-bindgen@=0.2.128']) self.run_process(['cargo', 'build']) lib = 'target/wasm32-unknown-emscripten/debug/libbindgen_integration.a' create_file('empty.c', '')