process_wasm

Function process_wasm 

Source
pub fn process_wasm(
    input_wasm_path: &Path,
    debug: bool,
    force: bool,
) -> Result<Vec<u8>>
Expand description

Core packaging flow: Wasm -> VTX Component.

Flow:

  1. Read raw Wasm bytes.
  2. Strip non-essential metadata.
  3. Check user imports (warnings only).
  4. Inject Reactor Adapter.
  5. Encode into WebAssembly Component Model.
  6. Validate exports contract.

Parameters:

  • input_wasm_path: Raw Wasm file path.
  • debug: Whether to emit verbose logs.
  • force: Whether to continue on contract validation failures.