Repository navigation
Align spin-sdk with wasip3 0.9 and Wasmtime 50 - #1
Open
codeitlikemiley wants to merge 9 commits into
Open
codeitlikemiley wants to merge 9 commits into
codeitlikemiley wants to merge 9 commits into
Conversation
Signed-off-by: Brian Hardock <[email protected]>
Signed-off-by: Brian Hardock <[email protected]>
Impl IntoRequest for types::Request
Signed-off-by: Brian Hardock <[email protected]>
Release v7.0.0
Upstream v7 still tested on Wasmtime 47 and locked a second wasip3 0.4 RC through getrandom 0.4.2, while spinframework/spin is on Wasmtime 50 and wasi:[email protected]. Pin CI to Rust 1.99.0, keep the library MSRV at 1.94, and record the cross-repo matrix. Co-authored-by: Uriah Galang <[email protected]>
Other agents can pin spin-rust-sdk to 3cf3001 without waiting on a merge SHA. Co-authored-by: Uriah Galang <[email protected]>
This was referenced Oct 24, 2026
Bump ctutils to 0.4.5, webpki-roots to 1.0.11, tokio to 1.54.1, and chacha20 to 0.10.2 inside existing caret ranges so RUSTSEC-2026-0385, RUSTSEC-2026-0381, and RUSTSEC-2026-0386 no longer fail CI. Co-authored-by: Uriah Galang <[email protected]>
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.
Problem / repro
codeitlikemiley/spin-rust-sdkmain(f0c4aeb) was six commits behindspinframework/spin-rust-sdkv7.0.0(2dfd93d). On that older main,cargo tree/Cargo.lockresolved:wasip30.7.0+wasi-0.3.0(wit-bindgen0.57.1)wasip30.4.0+wasi-0.3.0-rc-2026-01-06(wit-bindgen0.51.0) throughgetrandom0.4.2 onwasm32-wasip3wasmtime/wasmtime-wasi/wasmtime-wasi-http46.0.1Upstream v7 moved the direct crate to
wasip30.7.1and declared wasmtime47.0.2(lock resolved47.0.4) but still locked thewasip30.4 RC.spinframework/spinf1a5577(2026-10-23) already builds the host on wasmtime50.0.0andwit-component0.262.0. Nested test-case locks in both the fork and upstream v7 still resolvedwasip30.6.0(the March 2026 RC) andspin-sdk6.0.0.wasi-authandddd-cqrs-espin git reva02d330(origin/codex/final-wasi-rust-1.93), which is not an ancestor of v7.leptos-spintemplates, including upstream, still declarewasip30.6.0.CI on the first push of this branch (
Rust / Lint and Test, run 40094751148) compiled and passed the SDK tests, then failedcargo auditwith two vulnerabilities:RUSTSEC-2026-0385(ctutils0.4.2) andRUSTSEC-2026-0381(webpki-roots1.0.9). The same run also warned on unsoundtokio1.52.3 (RUSTSEC-2026-0386) and yankedchacha200.10.0.Build Examplessucceeded.Root cause
The guest binding crate and the host runtime moved on different clocks.
wasip30.7.1 / 0.8.0 / 0.9.0 all embed finalpackage wasi:[email protected](WIT files match between 0.7.1 and 0.9.0). The 0.4 and 0.6 crates are release-candidate snapshots and must not share a component with 0.9.getrandom0.4.2 pulled the 0.4 RC as a target dependency; 0.4.3 replaced that with a manualwasi:random/[email protected]import.wasip30.8+ also renamedwit_bindgen::spawntospawn_local.Wasmtime 50 (MSRV 1.97, released 2026-10-20) moved
WasiHttpView/default_hooksto the crate root and added a hooks argument toRequest::from_http. The SDK tests were still written for the 46/47 layout.The audit failure is separate from that bump.
digestrequiresctutils^0.4,wasmtime-wasi-http50 requireswebpki-roots^1.0.7,rand0.10.1 requireschacha20^0.10.0, andspin-sdkrequirestokio^1.48. The lock had resolved older releases inside those ranges. Patched releases are already published, so noCargo.tomlrequirement change is needed.Upstream status
wasip30.7.1, wasmtime 47.0.4,IntoRequestfortypes::Request, version 7.0.0. This branch fast-forwards those commits.wasip30.9.0 (wit-bindgen0.62.0), wasmtime 50,wit-component0.262, droppingwasip30.4,spawntospawn_local, stale nested locks.f1a5577. A1 should merge that, not re-bump wasmtime by hand.spinframework/leptos-spin480f1f7: templates still usewasip30.6.0. That upstream commit only pinnedwasm-bindgento 0.2.114.ctutils>=0.4.4,webpki-roots>=1.0.10,tokio>=1.53.3,chacha200.10.2). They were not yet selected in this lock.Implementation
No release. Package version stays 7.0.0.
wasip30.9.0withhttp-compatandwit-bindgen-macros.wasmtime,wasmtime-wasi,wasmtime-wasi-http50.0.0(p3),wit-component0.262.getrandom0.4.3, which removeswasip30.4.0 from the lock. Guestwit-bindgenresolves to 0.62.0.wit-bindgen0.51.0 remains only underwasip21.0.2 /getrandom0.3.4.wit-component0.259 and 0.261 remain becausewit-bindgen0.62 and wasmtime 50 pin them; 0.262 is the direct dev-dep.rust-toolchain.tomland CIRUST_VERSIONare1.99.0(rustc 1.99.0 (b940084d7 2026-09-28)). Libraryrust-versionstays1.94becausecargo +1.94.0 check -p spin-sdksucceeds. Wasmtime 50 is a dev-dependency and needs>=1.97to compile tests.wasip3::spawn_local. Wasmtime 50 test host API updated.simple-httpandsimple-redislocks regenerated (singlewasip30.9.0).ctutils0.4.2 → 0.4.5,webpki-roots1.0.9 → 1.0.11,tokio1.52.3 → 1.54.1,chacha200.10.0 → 0.10.2.errno,rustix,tempfile, andwinapi-utilstay onwindows-sys0.61.2.docs/stabilization/dependency-matrix.mdhas the cross-repo matrix and the exactCargo.tomledits for spin, wasi-http-middleware, wasi-auth, leptos_wasi, leptos-spin, and ddd-cqrs-es.Dependency commit:
3cf30012b50a1afb750dac3d28aa6da4a32c3468. Audit lock commit:f224ed1.Tests / evidence
Toolchain:
rustc 1.99.0 (b940084d7 2026-09-28),cargo 1.99.0 (5f94df478 2026-08-27). MSRV probe:rustc 1.94.0 (4a4ef493e 2026-03-02).cargo +1.99.0 metadata --locked --format-version 1resolved[email protected]+wasi-0.3.0,[email protected],[email protected],[email protected], and after the audit commit also[email protected],[email protected],[email protected],[email protected].cargo +1.99.0 tree --locked --target all -i [email protected]shows onlywasip2 1.0.2→getrandom 0.3.4.cargo +1.99.0 test -p spin-sdk --all-features --locked: 31 lib tests passed, includingsimple_httpandsimple_redisunder Wasmtime 50. Doctests: 33 passed, 8 ignored. Re-run after the audit lock bumps with the same result.cargo +1.99.0 audit(cargo-audit 0.22.2, 1352 advisories) exited 0 after those bumps. The previous lock failed that command onRUSTSEC-2026-0385andRUSTSEC-2026-0381.cargo +1.99.0 fmt --all -- --checkcargo +1.99.0 clippy --workspace --all-targets --all-features --locked -- -D warningscargo +1.99.0 check --no-default-features,--features json, and--features postgres4-typescargo +1.94.0 check -p spin-sdk --lockedcompiled the library andwasip30.9.0.f224ed1: Rust run 40133774288 (Lint and Test, includingaudit dependencies) succeeded in 8m34s, and Build Examples run 40133774286 succeeded.spinis not installed here, sospin build --upis unverified. Other repos were lockfile audits only; their recommended edits were not compiled.Compatibility and security
wasip30.9.0 is the samewasi:[email protected]WIT as 0.7.1. The Rust break isspawn→spawn_local. Callers ofspin_sdk::wasip3::spawnwill not compile until they rename it. crates.iospin-sdk7.0.0 does not include this bump.Removing
wasip30.4.0 drops a second, incompatible WIT snapshot fromwasm32-wasip3builds.getrandom0.4.3 still importswasi:random/[email protected].The lock also moved transitive
rustls0.23.38→0.23.46andhttp1.4.0→1.5.0because wasmtime 50's ranges allow them. The audit commit then movedctutils,webpki-roots,tokio, andchacha20to the patched releases named above..cargo/audit.tomlstill ignoresRUSTSEC-2026-0204andRUSTSEC-2026-0258from upstream v7; this PR does not claim those are resolved.Library MSRV stays 1.94. CI is 1.99.0 because the test host needs Wasmtime 50.
Dependent PRs
Owned by other agents. Exact snippets are in
docs/stabilization/dependency-matrix.md.codeitlikemiley/spin: merge upstreamf1a5577(already wasmtime 50). Then pointexamples/http-middleware/*git deps at3cf30012b50a1afb750dac3d28aa6da4a32c3468and renamewasip3::spawninyelling. Leave historicalspin-sdk2.2.0 fixtures pinned.wasi-http-middleware:wasip3 = "=0.9.0",wit-bindgen = "=0.62.0", toolchain1.99.0,spawn→spawn_local.wasi-auth: drop git reva02d330; pin3cf3001; same wasip3/wit-bindgen pins; declareserver_fn0.8.13;spin_grpc.rsusesspawn_local.leptos_wasi:wasip30.9.0,leptos0.8.22,leptos_macro=0.8.19,server_fn0.8.13.src/executor/p3.rsmust callwasip3::spawn_local.leptos-spin: templates still onwasip30.6.0 RC on both the fork and upstream. Retarget to 0.9.0 / leptos 0.8.22 / this SDK rev. Upstream has not done this.ddd-cqrs-es: same SDK rev,wasip3=0.9.0, replaceleptos-wasi-runtime=0.4.2-rc.1only after A5 publishes a 0.9-based 0.4.2. Published 0.4.2 is still the 0.7 guest.