Skip to content

Commit 2fdbfb2

Browse files
committed
Remove static crate.
1 parent 30d656e commit 2fdbfb2

File tree

6 files changed

+4
-69
lines changed

6 files changed

+4
-69
lines changed

Cargo.lock

-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/loadable/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ keywords.workspace = true
1010

1111
[lib]
1212
name = "powersync"
13-
crate-type = ["cdylib"]
13+
crate-type = ["cdylib", "staticlib"]
1414

1515
[dependencies]
1616
sqlite_nostd = { workspace=true }

crates/static/Cargo.toml

-24
This file was deleted.

crates/static/README.md

-3
This file was deleted.

crates/static/src/lib.rs

-32
This file was deleted.

tool/build_wasm.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ cp "target/wasm32-unknown-emscripten/wasm_asyncify/powersync.wasm" "libpowersync
3333
# Works for both emscripten and wasi.
3434
# target/wasm32-wasi/wasm/libpowersync.a
3535
cargo build \
36-
-p powersync_static \
36+
-p powersync_loadable \
3737
--profile wasm \
38+
--no-default-features \
39+
--features "powersync_core/static powersync_core/omit_load_extension sqlite_nostd/omit_load_extension" \
3840
-Z build-std=panic_abort,core,alloc \
3941
--target wasm32-wasi
4042

0 commit comments

Comments
 (0)