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 b0c82ba commit 4ed0e19Copy full SHA for 4ed0e19
tool/build_wasm.sh
@@ -24,10 +24,13 @@ RUSTFLAGS="-C link-arg=-sSIDE_MODULE=2 -C link-arg=-sASYNCIFY=1 -C link-arg=-sJS
24
-Z build-std=panic_abort,core,alloc \
25
--target wasm32-unknown-emscripten
26
27
-# Static lib (works for both sync and asyncify builds)
28
-# target/wasm32-unknown-emscripten/wasm/libpowersync.a
+
+# Static lib.
29
+# Works for both sync and asyncify builds.
30
+# Works for both emscripten and wasi.
31
+# target/wasm32-wasi/wasm/libpowersync.a
32
cargo build \
33
-p powersync_static \
34
--profile wasm \
35
- --target wasm32-unknown-emscripten
36
+ --target wasm32-wasi
0 commit comments