Registry / other / wasmi-validation

wasmi-validation

JSON →
library0.5.0rscratesunverified

Wasm code validator for the wasmi interpreter.

# Cargo.toml [dependencies] wasmi-validation = "0.5.0"
INSTALL
IMPORT
SIG · WASMI-VALIDATION
W
wasmi-validation
otherrustv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

validate_module
use wasmi_validation::validate_module;

Validate a WebAssembly module using wasmi.

use wasmi_validation::validate_module; use wasmi::Module; fn main() { let wasm: &[u8] = &[0x00, 0x61, 0x73, 0x6d]; // minimal wasm let module = Module::from_buffer(wasm).unwrap(); match validate_module(&module) { Ok(_) => println!("Valid"), Err(e) => println!("Invalid: {}", e), } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
wasmi-validation — cargo add wasmi-validation · libregistry