Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ jobs:
wasm-pack build bindings/wasm/ \
--target web \
--out-dir ../../pkg \
--out-name libveritas
--out-name libveritas \
-- \
--config 'profile.release.opt-level=3' \
--config 'profile.release.lto="fat"' \
--config 'profile.release.codegen-units=1' \
--config 'profile.release.panic="abort"' \
--config 'profile.release.strip=true'

- name: Report WASM size
run: ls -lh pkg/libveritas_bg.wasm
Expand Down
7 changes: 0 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,3 @@ spacedb = { version = "0.1", default-features = false, features = ["ext
# Always optimize; building and running the guest takes much longer without optimization.
[profile.dev]
opt-level = 3

[profile.release]
lto = "fat"
opt-level = "z"
codegen-units = 1
panic = "abort"
strip = true
Loading
Loading