Cloudflare1d ago
Making Rust Workers reliable: panic and abort recovery in wasm‑bindgen
Rust Workers on Cloudflare's platform were previously at risk of leaving the runtime in an undefined state upon panic or unexpected abort, bricking instances and affecting subsequent requests. A new version of Rust Workers now provides comprehensive Wasm error recovery, which includes panic and abort handling. The solution involved modifying wasm-bindgen, the core project that generates Rust-to-JavaScript bindings, to introduce panic=unwind support and abort recovery mechanisms. These changes enable the recovery of stateful instances and reduce the risk of persistent failure modes, while also ensuring that the WebAssembly instance remains valid and reusable even after panics and aborts.
NetworkingSecurity
1 min