Skip to content

Commit 61bf101

Browse files
committed
docs: add --release warning for Rust debugging
1 parent a01d120 commit 61bf101

File tree

1 file changed

+2
-0
lines changed
  • component-model/src/language-support

1 file changed

+2
-0
lines changed

component-model/src/language-support/rust.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ Now, use `cargo component` to build the component, being sure to optimize with a
9090
cargo component build --release
9191
```
9292

93+
> **WARNING:** Building with `--release` removes all debug-related information from the resulting .wasm file. When prototyping or testing locally, you might want to avoid `--release` to obtain useful backtraces in case of errors (for example, with `wasmtime::WasmBacktraceDetails::Enable`). Note: the resulting .wasm file will be considerably larger (likely 4MB+).
94+
9395
You can use `wasm-tools component wit` to output the WIT package of the component:
9496

9597
```

0 commit comments

Comments
 (0)