[][src]Function wit_validator::validate

pub fn validate(bytes: &[u8]) -> Result<()>

Validates an entire WebAssembly module listed by bytes

The bytes given must be an entire WebAssembly module, not just the interface types custom section. This will validate only the wasm interface types custom section, it will only perform minimal validation of the rest of the module as needed. For example core wasm functions aren't typechecked here.