Release 0.2.127#5219
Open
guybedford wants to merge 1 commit into
Open
Conversation
hoodmane
approved these changes
Jun 30, 2026
guybedford
force-pushed
the
release-0.2.127
branch
from
June 30, 2026 20:06
6d4bbac to
ed55870
Compare
guybedford
force-pushed
the
release-0.2.127
branch
from
July 4, 2026 00:12
ed55870 to
9b4cfd2
Compare
mendess
added a commit
to cloudflare/azul
that referenced
this pull request
Jul 13, 2026
Since nightly >=2026-05-09 (rust-lang/rust#156061), wasm targets emit modern exnref exception-handling opcodes by default under -Cpanic=unwind. The wasm-bindgen 0.2.126 CLI bundles wasmparser 0.245.1, which rejects these opcodes with: type mismatch: catch_all_ref label must be a subtype of (ref exn) Work around this by passing -Cllvm-args=-wasm-use-legacy-eh via RUSTFLAGS at every worker-build --panic-unwind invocation site. worker-build reads existing RUSTFLAGS and appends -Cpanic=unwind, so the flag survives into the cargo subprocess. Placing it in .cargo/config.toml would not work: Cargo treats RUSTFLAGS env and target.<triple>.rustflags as mutually exclusive sources, and the env var (always set by worker-build) wins. This can be removed once wasm-bindgen ships a wasmparser that understands exnref (tracked in wasm-bindgen/wasm-bindgen#5219).
mendess
added a commit
to cloudflare/azul
that referenced
this pull request
Jul 13, 2026
Since nightly >=2026-05-09 (rust-lang/rust#156061), wasm targets emit modern exnref exception-handling opcodes by default under -Cpanic=unwind. The wasm-bindgen 0.2.126 CLI bundles wasmparser 0.245.1, which rejects these opcodes with: type mismatch: catch_all_ref label must be a subtype of (ref exn) Work around this by passing -Cllvm-args=-wasm-use-legacy-eh via RUSTFLAGS at every worker-build --panic-unwind invocation site. worker-build reads existing RUSTFLAGS and appends -Cpanic=unwind, so the flag survives into the cargo subprocess. Placing it in .cargo/config.toml would not work: Cargo treats RUSTFLAGS env and target.<triple>.rustflags as mutually exclusive sources, and the env var (always set by worker-build) wins. This can be removed once wasm-bindgen ships a wasmparser that understands exnref (tracked in wasm-bindgen/wasm-bindgen#5219).
mendess
added a commit
to cloudflare/azul
that referenced
this pull request
Jul 14, 2026
Since nightly >=2026-05-09 (rust-lang/rust#156061), wasm targets emit modern exnref exception-handling opcodes by default under -Cpanic=unwind. The wasm-bindgen 0.2.126 CLI bundles wasmparser 0.245.1, which rejects these opcodes with: type mismatch: catch_all_ref label must be a subtype of (ref exn) Work around this by passing -Cllvm-args=-wasm-use-legacy-eh via RUSTFLAGS at every worker-build --panic-unwind invocation site. worker-build reads existing RUSTFLAGS and appends -Cpanic=unwind, so the flag survives into the cargo subprocess. Placing it in .cargo/config.toml would not work: Cargo treats RUSTFLAGS env and target.<triple>.rustflags as mutually exclusive sources, and the env var (always set by worker-build) wins. This can be removed once wasm-bindgen ships a wasmparser that understands exnref (tracked in wasm-bindgen/wasm-bindgen#5219).
lukevalenta
pushed a commit
to cloudflare/azul
that referenced
this pull request
Jul 15, 2026
* Add sentry support * Update integration test wait time * Add panic-unwind to CI * Force legacy Wasm EH in --panic-unwind builds Since nightly >=2026-05-09 (rust-lang/rust#156061), wasm targets emit modern exnref exception-handling opcodes by default under -Cpanic=unwind. The wasm-bindgen 0.2.126 CLI bundles wasmparser 0.245.1, which rejects these opcodes with: type mismatch: catch_all_ref label must be a subtype of (ref exn) Work around this by passing -Cllvm-args=-wasm-use-legacy-eh via RUSTFLAGS at every worker-build --panic-unwind invocation site. worker-build reads existing RUSTFLAGS and appends -Cpanic=unwind, so the flag survives into the cargo subprocess. Placing it in .cargo/config.toml would not work: Cargo treats RUSTFLAGS env and target.<triple>.rustflags as mutually exclusive sources, and the env var (always set by worker-build) wins. This can be removed once wasm-bindgen ships a wasmparser that understands exnref (tracked in wasm-bindgen/wasm-bindgen#5219). * Add getrandom_03 wasm_js feature to witness_worker witness_worker transitively depends on getrandom 0.3.4 via generic_log_worker -> sentry-core -> rand 0.9 -> rand_core 0.9. Without the wasm_js feature, getrandom 0.3.4 emits a compile_error! on wasm32-unknown-unknown. ct_worker and bootstrap_mtc_worker already carry this dependency for feature unification; witness_worker was missing it. * cargo shear * Remove longer time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixed
Fixed compilation with
(feature = "std", panic = "unwind", target_feature = "atomics")and prevented a
Taskleak when a future unwinds out ofpoll(via a Rustpanic or a foreign JS exception) in both the single-threaded and
multi-threaded executors.
#5214
Emscripten output now reaches wasm exports through emscripten's
wasmExportsobject using bracket (string-literal) access (
wasmExports['__wbindgen_start'])instead of a local
wasmalias with dot access.wasmExports['name']is theform emcc's DCE graph roots and its import/export minifier renames in the JS
and the wasm together, so the glue now survives and stays consistent under
-O3/-Os(previously the export names were minified without updating the JScall sites, e.g.
__wbindgen_start is not defined).#5217
The emscripten detection marker static is no longer leaked as public API.
#5220
#5222