All Projects â†’ bokuweb â†’ yaw

bokuweb / yaw

Licence: MIT license
🦀 A wasm interpreter in Rust

Programming Languages

rust
11053 projects
WebAssembly
147 projects

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].