diff --git a/Cargo.toml b/Cargo.toml index d33ce9a..c1185a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,7 @@ rand_chacha = "0.3" recrypt = { version = "0.14", features = ["wasm"], default-features = false } serde = "1" serde_derive = "1" +# Must be kept in-sync with build.js and GitHub workflows wasm-bindgen = { version = "=0.2.104" } [profile.dev] diff --git a/build.js b/build.js index 6749ed7..bc907af 100755 --- a/build.js +++ b/build.js @@ -33,6 +33,7 @@ shell.exec("yarn"); shell.exec("cargo clean"); shell.exec("cargo update"); shell.exec("cargo install wasm-pack"); +shell.exec("cargo install wasm-bindgen-cli@0.2.104"); // version must be kept in-sync with Cargo.toml shell.exec("yarn run compile"); shell.exec("yarn test"); shell.exec("PATH=~/.cargo/bin:$PATH yarn run pack");