Skip to content

Upgrade Fastly SDK to 0.13.3 - #529

Merged
aram356 merged 2 commits into
mainfrom
chore/fastly-0.13.3
Nov 25, 2026
Merged

aram356 merged 2 commits into
mainfrom
chore/fastly-0.13.3

Conversation

@aram356

@aram356 aram356 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Moves fastly and log-fastly from 0.13.1 to 0.13.3 in all four lockfiles that resolve them.
  • The SDK raises its floors to url ^2.5.9 and anyhow ^1.0.103, which clears RUSTSEC-2026-0592 (url 2.5.8) everywhere. Nothing here calls Url::origin(), so this is hygiene, not a reachable fix.
  • Pins Viceroy 0.22.0. It is required, not optional. In SDK 0.13.2+, Request::send calls compute_runtime::products(), which imports fastly_compute_runtime::has_{domain_inspector,image_optimizer,origin_inspector}. Viceroy 0.21.0 lacks them, so any guest that sends upstream fails to instantiate (unknown import: fastly_compute_runtime::has_domain_inspector). The reusable-app faults variant hit exactly this in CI. Viceroy 0.22.0 stubs them.
  • No Rust code changes. 0.13.2 and 0.13.3 add SDK APIs (reason phrase, VPN/proxy geo, products, shield between-bytes timeout) and remove none.

Changes

Crate / File Change
Cargo.lock fastly/fastly-sys/fastly-shared/fastly-macros/log-fastly 0.13.3, url 2.5.9, form_urlencoded 1.2.3. fastly-sys also moves its private wasip2 to 2.0.1 and wit-bindgen to 0.62/0.63.
examples/app-demo/Cargo.lock Same resolution as root.
tests/fixtures/reusable-app/Cargo.lock Same resolution as root. Dependabot covers / only, so nested lockfiles drift otherwise.
tests/fixtures/request-fidelity/Cargo.toml, Cargo.lock Exact pin =0.13.1 to =0.13.3, kept in step with the workspace lock by scripts/check_shared_dep_pins.sh.
.tool-versions, crates/edgezero-cli/src/generator.rs viceroy 0.22.0, plus the scaffold's tool seed and its tests.
crates/edgezero-adapter-fastly/src/request.rs, docs/guide/adapters/{fastly,overview}.md, tests/fixtures/request-fidelity/README.md Version-scoped notes now name SDK 0.13.3 and Viceroy 0.22.0. I diffed the 0.13.1 and 0.13.3 sources to confirm the claims still hold: still no safe borrowed raw-target accessor, and the Serve limit builders are unchanged.

Manifests keep the caret fastly = "0.13", following the existing convention that the lockfile carries the patch.

Viceroy 0.22.0 also reports NotFound when a witx guest deletes a missing KV key, matching the Compute platform (fastly/Viceroy#722). No Viceroy release provides reason_phrase_get yet, so Response::get_reason_phrase still fails under local Viceroy.

Closes

Closes #528

Test plan

  • cargo test --workspace --all-targets (1550 passed, macOS)
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo fmt --all -- --check
  • cargo check --workspace --all-targets --features "fastly cloudflare spin"
  • WASM builds: cargo check -p edgezero-adapter-spin --target wasm32-wasip2 --features spin, plus cargo test -p edgezero-adapter-fastly --features fastly --target wasm32-wasip1 --lib under Viceroy 0.21.0 (97 passed). That binary does not link Request::send, so it did not catch the Viceroy requirement. CI's reusable-app smoke did.
  • examples/app-demo workspace: cd examples/app-demo && cargo test --workspace --all-targets (left to CI)
  • Docs build: cd docs && npm run lint && npm run format && npm run build (left to CI)
  • Manual testing via edgezero serve --adapter axum
  • Other: scripts/check_shared_dep_pins.sh passes. cargo test -p edgezero-cli --lib generator passes. cargo audit on each of the four lockfiles drops RUSTSEC-2026-0592 and adds no new advisory. The fastly wasm tests CI job runs the contract tests, request-fidelity probes and reusable-app smoke under Viceroy 0.22.0.

Checklist

  • Changes follow CLAUDE.md conventions
  • No Tokio deps added to core or adapter crates
  • Route params use {id} syntax (not :id)
  • Types imported from edgezero_core (not http crate)
  • Store wiring goes through KvRegistry / ConfigRegistry / SecretRegistry (not the legacy single-handle setters) — see spec §6.6
  • New code has tests (no new code)
  • No secrets or credentials committed

Move fastly and log-fastly from 0.13.1 to 0.13.3 in the root,
app-demo, reusable-app and request-fidelity lockfiles, and the
request-fidelity fixture's exact pin. The SDK raises its floors to
url ^2.5.9 and anyhow ^1.0.103, which clears RUSTSEC-2026-0592 (url
2.5.8) from every lockfile.

fastly-sys 0.13.3 also moves wasip2 to 2.0.1 and wit-bindgen to
0.62/0.63; both are private to fastly-sys.

Version-scoped notes in the adapter docs, the ingress comment and the
fixture README now name 0.13.3. Their claims still hold: 0.13.3 adds
no raw-target accessor and keeps the Serve limit builders.

Closes #528
@aram356 aram356 self-assigned this Nov 25, 2026
Pin standalone Viceroy 0.22.0 in .tool-versions, the scaffold's tool
seed and its tests, and the adapter docs that name the fixture
version.

0.22.0 adds the fastly_compute_runtime::has_* hostcall stubs behind
fastly::compute_runtime::products() (SDK 0.13.2), so guests that call
it no longer fail to instantiate locally. It also reports NotFound
for deleting a missing KV key over witx, matching the Compute
platform (fastly/Viceroy#722).

No Viceroy release provides reason_phrase_get yet, so
Response::get_reason_phrase (SDK 0.13.3) still fails under local
Viceroy.
@aram356 aram356 mentioned this pull request Nov 25, 2026
7 of 16 tasks
@aram356
aram356 added this pull request to stack #532 November 25, 2026 04:35
@aram356
aram356 merged commit 31c851c into main Nov 25, 2026
39 of 41 checks passed
@aram356
aram356 deleted the chore/fastly-0.13.3 branch November 25, 2026 05:48
aram356 added a commit that referenced this pull request Nov 25, 2026
Take PR #524's updated tip, which carries main's Fastly SDK 0.13.3
upgrade (#529) with Viceroy 0.22.0 and the Fastly CLI 17.2.0 upgrade
(#531), PR #275's drain of declared uploads before an early-response
HTTP/1 close, and the macOS test fixes from PRs #407 and #414. It
merges without conflicts.
aram356 added a commit that referenced this pull request Nov 25, 2026
Take PR #515's updated tip, which carries main's Fastly SDK 0.13.3
upgrade (#529) with Viceroy 0.22.0 and the Fastly CLI 17.2.0 upgrade
(#531), PR #275's drain of declared uploads before an early-response
HTTP/1 close, and the macOS test fixes from PRs #407 and #414. It
merges without conflicts.
aram356 added a commit that referenced this pull request Nov 25, 2026
Take PR #519's updated tip, which carries main's Fastly SDK 0.13.3
upgrade (#529) with Viceroy 0.22.0 and the Fastly CLI 17.2.0 upgrade
(#531), PR #275's drain of declared uploads before an early-response
HTTP/1 close, and the macOS test fixes from PRs #407 and #414. It
merges without conflicts.
aram356 added a commit that referenced this pull request Nov 25, 2026
Take PR #502's updated tip, which carries main's Fastly SDK 0.13.3
upgrade (#529) with Viceroy 0.22.0 and the Fastly CLI 17.2.0 upgrade
(#531), PR #275's drain of declared uploads before an early-response
HTTP/1 close, and the macOS test fixes from PRs #407 and #414. It
merges without conflicts.
aram356 added a commit that referenced this pull request Nov 25, 2026
Take PR #469's updated tip, which carries main's Fastly SDK 0.13.3
upgrade (#529) with Viceroy 0.22.0 and the Fastly CLI 17.2.0 upgrade
(#531). It merges without conflicts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade Fastly SDK to 0.13.3 to pick up the url RUSTSEC fix

1 participant