Skip to content

bokuweb/yaw

Repository files navigation

yaw

GitHub Actions Status

Installation

For now, please install from github.

[dependencies]
yaw = { git = "https://github.com/bokuweb/yaw.git" }

Example

use yaw::*;

fn main() -> Result<(), error::YawError> {
    let ins = instantiate(&include_bytes!("./add.wasm")[..], None)?;
    let ret = ins.invoke("add", &[RuntimeValue::I32(1), RuntimeValue::I32(2)])?;
    println!("1 + 2 = {:?}", ret);
    Ok(())
}

More examples

TODO

  • Run gameboy emulator
  • Add validator
  • Support WASI
  • Run NES emulator
  • Support no_std
  • Support ARM core

LICENSE

MIT

About

🦀 A wasm interpreter in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published