WEFT_OS/crates/weft-runtime
Marco Allegretti e56daf6570 feat(runtime): upgrade to WASI Preview 2 + Component Model
Replaces the wasmtime-runtime run_module implementation:
- wasmtime::Module → wasmtime::component::Component
- wasmtime::Linker<WasiCtx> → wasmtime::component::Linker<State>
- wasmtime_wasi::add_to_linker → wasmtime_wasi::add_to_linker_sync
- _start typed func call → wasmtime_wasi::bindings::sync::Command::instantiate + call_run

Config now sets wasm_component_model(true). State struct implements WasiView
(ctx + table). app.wasm must be a WASI 0.2 component; core modules are no
longer supported.
2026-03-11 15:03:16 +01:00
..
src feat(runtime): upgrade to WASI Preview 2 + Component Model 2026-03-11 15:03:16 +01:00
Cargo.toml feat(runtime): add wasmtime-runtime feature gate for real Wasm execution 2026-03-11 10:26:41 +01:00