Skip to content

Commit

Permalink
chore: Improve debugability of the Wasm binary
Browse files Browse the repository at this point in the history
  • Loading branch information
nesium committed Sep 12, 2024
1 parent 810bd39 commit 087b0f0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bindings/prose-sdk-js/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,19 @@ web-sys = { version = "0.3", features = ["DomException"] }

[features]
delay-requests = ["prose-core-client/debug"]

[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
# Should we enable wasm-bindgen's debug assertions in its generated JS glue?
debug-js-glue = true
# Should wasm-bindgen demangle the symbols in the "name" custom section?
demangle-name-section = true
# Should we emit the DWARF debug info custom sections?
# Works best with the DevTools plugin to support Wasm apps (https://chromewebstore.google.com/detail/pdcpmagijalfljmkmjngeonclgbbannb)
dwarf-debug-info = true

[package.metadata.wasm-pack.profile.release]
# Tell wasm-opt to:
# * `-Oz`: optimise for size
# * `-g`: include the "name" section (which holds the printable names for
# symbols) in the output.
wasm-opt = ['-Oz', '-g']

0 comments on commit 087b0f0

Please sign in to comment.