Skip to content

Commit

Permalink
don't panic if you need to build wasm bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
martyall committed Dec 13, 2024
1 parent a4a992f commit 308fa27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/crypto/kimchi_bindings/js/node_js/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail
if [[ -z "${PLONK_WASM_NODEJS-}" ]]; then
export RUSTFLAGS="-C target-feature=+atomics,+bulk-memory,+mutable-globals -C link-arg=--no-check-features -C link-arg=--max-memory=4294967296"
# The version should stay in line with the one in kimchi_bindings/wasm/rust-toolchain.toml
rustup run 1.74 wasm-pack build --target nodejs --out-dir ../js/node_js ../../wasm -- -Z build-std=panic_abort,std --features nodejs
rustup run 1.74 wasm-pack build --target nodejs --out-dir ../js/node_js ../../wasm -- --features nodejs
else
cp "$PLONK_WASM_NODEJS"/* -R .
fi
2 changes: 1 addition & 1 deletion src/lib/crypto/kimchi_bindings/js/web/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail
if [[ -z "${PLONK_WASM_WEB-}" ]]; then
export RUSTFLAGS="-C target-feature=+atomics,+bulk-memory,+mutable-globals -C link-arg=--no-check-features -C link-arg=--max-memory=4294967296"
# The version should stay in line with the one in kimchi_bindings/wasm/rust-toolchain.toml
rustup run 1.74 wasm-pack build --target web --out-dir ../js/web ../../wasm -- -Z build-std=panic_abort,std
rustup run 1.74 wasm-pack build --target web --out-dir ../js/web ../../wasm
else
cp "$PLONK_WASM_WEB"/* -R .
fi
2 changes: 1 addition & 1 deletion src/lib/crypto/proof-systems
Submodule proof-systems updated 1 files
+4 −2 Makefile

0 comments on commit 308fa27

Please sign in to comment.