feat: Enable plumbing through keep_names to wasm build for better stack traces (#5296)
Co-authored-by: Robert Deaton <me@rdeaton.space>
This commit is contained in:
1 parent
33159f366a
commit
df4fe37180
3 files changed
+23
-1
No files matched your search
@@ -59,6 +59,14 @@ pub(crate) struct WasmOptConfig {
|
||||
#[serde(default = "false_bool")]
|
||||
pub(crate) debug: bool,
|
||||
|
||||
/// Keep the wasm name section, useful for profiling and debugging
|
||||
///
|
||||
/// Unlike `debug` which preserves DWARF debug symbols (requiring a browser extension to read),
|
||||
/// the name section allows tools like `console_error_panic_hook` to print backtraces with
|
||||
/// human-readable function names without any browser extension.
|
||||
#[serde(default = "false_bool")]
|
||||
pub(crate) keep_names: bool,
|
||||
|
||||
/// Enable memory packing
|
||||
#[serde(default = "false_bool")]
|
||||
pub(crate) memory_packing: bool,
|
||||
|
||||
Reference in new issue
Block a user