cloudflare / cloudflare/workers-rs
[BUG] Can no longer compile with `strip = true`
- Dominant language
- Rust
- Stars
- 3.7k
- Forks
- 429
- Avg merge
- 20h 28m
- Merged PRs (30d)
- 7
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### What version of `workers-rs` are you using?
0.8.5
### What version of `wrangler` are you using?
4.101.0
### Describe the bug
`wasm-bindgen 0.2.125` hard requires externref table in wasm binaries and this table is removed with `strip = true` in cargo `[profile.release]`
It fails to compile with the following error:
```
error: failed to generate catch wrappers
Caused by:
externref table required for catch wrappers
Error: Running the wasm-bindgen CLI
```
### Steps To Reproduce
_No response_
Contributor guide
Research direction
Start by reproducing the failure in workers-rs 0.8.5 with cargo’s release profile using strip = true and wrangler 4.101.0. Inspect the wasm-bindgen CLI catch-wrapper failure and the project’s build configuration; done means the worker compiles successfully with stripping enabled, with a regression check for this configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, wasm
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100