We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54abf35 commit 97ca058Copy full SHA for 97ca058
1 file changed
packages/groq-wasm/scripts/build-wasm.sh
@@ -18,6 +18,11 @@ fi
18
19
# Build WASM
20
cd "$RUST_DIR"
21
+
22
+# Remap absolute paths in panic messages to avoid leaking the build machine's
23
+# username and directory structure in the published WASM binary.
24
+export RUSTFLAGS="--remap-path-prefix=$HOME/.cargo=.cargo --remap-path-prefix=$RUST_DIR=."
25
26
wasm-pack build --target web --out-dir "$WASM_DIR" --release
27
28
# Clean up unnecessary files
0 commit comments