pub fn validate_module(wasm_bytes: &[u8]) -> Result<(), SandboxError>Expand description
Validate a WASM module without executing it.
Returns Ok(()) if the bytes represent a valid WASM module,
or Err(SandboxError::ModuleInvalid) otherwise.
pub fn validate_module(wasm_bytes: &[u8]) -> Result<(), SandboxError>Validate a WASM module without executing it.
Returns Ok(()) if the bytes represent a valid WASM module,
or Err(SandboxError::ModuleInvalid) otherwise.