WEFT_OS/crates
Marco Allegretti 6d88104f28 feat(runtime): add wasmtime-runtime feature gate for real Wasm execution
Cargo.toml:
- New feature: wasmtime-runtime = [dep:wasmtime, dep:wasmtime-wasi]
- Default is off so the normal build remains lightweight.
- wasmtime 30 and wasmtime-wasi 30 added as optional dependencies.

src/main.rs:
- run_module(wasm_path) replaces the inline stub.
- cfg(not(feature = wasmtime-runtime)): prints READY and returns.
  Preserves all existing test and development behaviour unchanged.
- cfg(feature = wasmtime-runtime): creates a Wasmtime Engine + Module,
  builds a WASI linker with inherited stdout/stderr, prints READY, then
  instantiates the module and calls _start.
  READY is printed before _start so weft-appd can record the session as
  Running before the app enters its event loop.

The production service binary is built with:
  cargo build -p weft-runtime --release --features wasmtime-runtime
2026-03-11 10:26:41 +01:00
..
weft-appd feat(appd): implement TerminateApp process signaling via abort channel 2026-03-11 09:37:09 +01:00
weft-build-meta Initialize Rust workspace and repository metadata 2026-03-10 18:47:06 +01:00
weft-compositor test(compositor): add protocol unit tests and stale identifier rejection 2026-03-11 08:12:11 +01:00
weft-pack feat(pack): validate Wasm module magic bytes in check 2026-03-11 10:21:43 +01:00
weft-runtime feat(runtime): add wasmtime-runtime feature gate for real Wasm execution 2026-03-11 10:26:41 +01:00
weft-servo-shell feat(pack): add install subcommand; clean up servo-shell stub comment 2026-03-11 09:45:31 +01:00