Repository navigation
chore(deps): move the worker crates to workers-rs 0.9 - #303
Merged
Merged
Conversation
worker, worker-macros and worker-sys go from 0.8.7 to 0.9.0 in the five crates that use them (the Worker, the Cloudflare adapter, the edge, the preview provisioner and the editor spike), and CI's `worker-build` pin follows to 0.9.0. The lock also moves the wasm-bindgen family from 0.2.129 to 0.2.130, which worker 0.9 requires. Why now: 0.9.0 adds `MessageExt::attempts()`, the number of times a queue message has been delivered. 0.8.7 has no way to read it (the inner JS message is a private field). The queue failure policy of #53 needs it to grow a retry delay and to know a last delivery. No behaviour change is intended. Nothing in this change reads `attempts()` yet. Refs: #53 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… 0.9 workers-rs 0.9 wraps every `#[event]` handler in a span and calls `tracing.getActiveSpan()` of `cloudflare:workers`. Cloudflare added that call to the runtime on 2026-09-25, and the workerd inside wrangler 4.123.0 (which accepts compatibility dates only up to 2026-08-18) is older. Measured with this config and the same build: wrangler 4.123.0 answers every request 500 `Critical error`, so `/healthz` never turns healthy and `scripts/contract.sh worker-cf` exits 4 (twice); wrangler 4.151.2, the version CI pins, passes the `main` pass 71/71 and the `bindings` pass 5/5. The newest wrangler that fails is not known, so the comment names only the two measured ones. Refs: #53 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
aRustyDev
temporarily deployed
to
preview-control-plane
November 18, 2026 05:42 — with
GitHub Actions
Inactive
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Merged
This was referenced Nov 18, 2026
This branch was previously deployed
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.
What
worker,worker-macrosandworker-sysgo from 0.8.7 to 0.9.0 in the five crates that use them:thrust-worker,thrust-adapters-cloudflare,thrust-edge,thrust-preview-provisionerand thethrust-editor-workerspike.worker-buildpin (.github/actions/setup-rust/action.yml) and the line that states it indocs/src/architecture/cicd.mdgo to 0.9.0.wasm-bindgenfamily (wasm-bindgen,-futures,-macro,-macro-support,-shared,js-sys,web-sys) from 0.2.129 to 0.2.130, whichworker0.9 requires. Nothing else moves.crates/worker/wrangler.tomlrecords the wrangler requirement below.Why
Part of #53 (permanent versus transient consumer errors). Its retry delay and its "this was the last delivery" decision need the delivery count of a queue message.
MessageExt::attempts()first appears inworker0.9.0; 0.8.7 cannot read it (the wrapped JS message is a private field). Nothing in this PR readsattempts()yet, and no behaviour change is intended.Read this before you run the Worker locally
A Worker built on
worker0.9 does not run on wrangler 4.123.0 (the Homebrew version); it runs on 4.151.2, the version CI pins. 0.9 wraps every#[event]handler in a span and callstracing.getActiveSpan()ofcloudflare:workers. Cloudflare's changelog dates that call to the runtime at 2026-09-25, and the workerd in 4.123.0 accepts compatibility dates only up to 2026-08-18.Measured with the same build and the same
wrangler.toml, changing only which wrangler is first onPATH:scripts/contract.sh worker-cfCritical errorfromTracing::get_active_span;/healthznever turns healthy; exit 4. Twice (main, thenbindings).main71/71 (expected=71),bindings5/5 (expected=5)The newest wrangler that fails is not known; only these two were run.
Two more local-only facts:
scripts/rsfindsworker-buildthrough~/.cargo/bin, so a local build needscargo install worker-build --locked --version =0.9.0.worker-builddeletes every cachedwasm-bindgenversion in~/Library/Caches/worker-buildbefore it downloads the one it wants. While some worktrees are on 0.8.7 (wants 0.2.129) and others on 0.9.0 (wants 0.2.130), alternating builds on one machine remove each other's CLI mid-build: my first 0.9.0 build died withRunning the wasm-bindgen CLI: No such file or directorywhile another worktree's 0.8.7 build was running.WASM_BINDGEN_BIN=<path to a 0.2.130 wasm-bindgen>skips the cache.What I ran
On the branch rebased onto
mainat 3f3c3a9 unless noted.cargo fmt --all --check,cargo clippy --workspace --all-targets --locked -- -D warnings, and CI's two wasm32 clippy steps (thrust-worker --no-default-features,thrust-edge): clean.cargo checkfor each of the five crates alone on wasm32 (before the rebase): clean. Checking several of them in onecargocall fails onthrust-edgebecause thehttpfeature ofworkeris unified on;fetch_requesthas the same signature in 0.8.7, and CI never combines them.thrust-edge228,thrust-adapters-cloudflare229,thrust-preview-provisioner4, all passed (before the rebase). They are native tests and do not run these crates in workerd.worker-build0.9.0 buildscrates/workerin release (--no-default-features), andwrangler deploy --dry-runbundles that output,import sourceincluded, with both 4.123.0 and 4.151.2. A copy of the build with a syntax error fails the same dry run (exit 1), so the check can fail.runsteps of CI'sdepsjob, read fromlint.ymland run in order. Step 17 downloads a linuxactionlintinto$RUNNER_TEMP, so I ran the script it wraps (.github/scripts/lint-actionlint.sh) with the native 1.7.12 binary instead; its built-in control behaved. The two steps that readCargo.lockand the lint were rerun after the rebase (check-cargo-lock.sh: 492 packages)..github/scripts/tests/test-deploy-template.sh(deploy parity, with its must-fail controls): 35 passed, 0 bad.scripts/contract.sh worker-cf mainandbindingson 4.151.2, as above.What I did not run
scripts/e2e.sh worker-cf controls(the browser journeys); CI runs it on this PR, since a lockfile change runs everything.getActiveSpanto 2026-09-25, so it should have it, but nothing of this build has run there yet.🤖 Generated with Claude Code