Skip to content

Commit

Permalink
Only strip debuginfo because wasm-pack else fails
Browse files Browse the repository at this point in the history
  • Loading branch information
maxammann committed May 9, 2022
1 parent 7171dbd commit 4cb3e46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[target.wasm32-unknown-unknown]

rustflags = [
# Enabled unstable APIs from web_sys
"--cfg=web_sys_unstable_apis",
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ members = [
[profile.release]
lto = true
codegen-units = 1
strip = true # Automatically strip symbols from the binary.
strip = "debuginfo" # Automatically strip symbols from the binary. Using here true makes "wasm-pack" fail
opt-level = "z" # Optimize for size.
panic = "abort"

[profile.bench]
debug = true
Expand Down

0 comments on commit 4cb3e46

Please sign in to comment.