walrus-simple-interpreter

Crates.iowalrus-simple-interpreter
lib.rswalrus-simple-interpreter
version0.2.3
created_at2025-04-30 13:24:39.021541+00
updated_at2025-08-15 20:50:42.030748+00
descriptionA simple interpreter for WebAssembly using the Walrus library.
homepagehttps://github.com/oligamiq/walrus-simple-interpreter
repositoryhttps://github.com/oligamiq/walrus-simple-interpreter
max_upload_size
id1654899
size44,506
oligami (oligamiq)

documentation

README

simple wasm interpreter

This dependents walrus, anyhow, log only.

  • call func with virtual system per eval operation
  • register import func
  • Coverage of some instruction. If not enough, we recommend pull-request.
  • only 700 code lines
  • used by my other project
let mut interpreter = walrus_simple_interpreter::Interpreter::new(&module)?;
interpreter.set_interrupt_handler(|_, instr, _| {
    println!("Interrupt handler called");
    println!("Instr: {instr:?}");

    Ok(())
});
interpreter.call(fid, self, &[])?;
Commit count: 6

cargo fmt