cloudflare / cloudflare/workers-rs

[BUG] Can no longer compile with `strip = true`

Open
#1,014 2 comments 5 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.