pub fn process_wasm(
input_wasm_path: &Path,
debug: bool,
force: bool,
) -> Result<Vec<u8>>Expand description
Core packaging flow: Wasm -> VTX Component.
Flow:
- Read raw Wasm bytes.
- Strip non-essential metadata.
- Check user imports (warnings only).
- Inject Reactor Adapter.
- Encode into WebAssembly Component Model.
- 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.