Upgrade Wasmtime to 48 and add native WASI P3 build lane - #666
Merged
Conversation
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.
Why
Wetware needs a stable substrate for the future WASI P3 migration without changing production guest behavior in the same change. Wasmtime 48 provides the required foundation, but its fuel hooks, socket defaults, and filesystem APIs differ from Wasmtime 45. This PR preserves current P2 Cell behavior and adds a reproducible native-P3 build lane before later migration work changes guest scheduling or transport.
Summary
wasmtime,wasmtime-wasi, andwasmtime-wasi-ioto 48.0.1 while preserving the current P2 guest runtime;wasm32-wasip3fixture build lane;wasm-toolsand reject any WASI 0.2 imports.Runtime behavior
Production remains P2-only.
This PR does not migrate
std/system, PID0, kernel/status, or other guests to P3. It does not add the future P3 transport.Important Wasmtime 48 parity adaptations
/tmpread-write semantics;Native P3 lane
Pinned tuple:
rust-srcwith-Z build-std=std,panic_abort;wasm32-wasip3;wasm-component-ld0.5.30;wit-bindgen0.61.1;wasm-tools1.258.0;The fixture is intentionally minimal and contains no Wetware runtime, Tokio, or Cap'n Proto.
Validation
wasm-toolsvalidation with 14 WASI 0.3 imports and zero WASI 0.2 imports;git diff --checkpassed.The checksum-pinned Linux P3 lane will receive its first GitHub Actions execution on this PR.
Architectural context
This PR is substrate only for a separately reviewed future P3 migration. Production guest scheduling remains unchanged.