Skip to content
🦀 A wasm interpreter in Rust
Rust WebAssembly Other
Branch: master
Clone or download

Latest commit

Latest commit 46d0447 Feb 25, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Yaw boy (#4) Feb 24, 2020
benches init Jan 26, 2020
examples Yaw boy (#4) Feb 24, 2020
fixtures init Jan 26, 2020
src Yaw boy (#4) Feb 24, 2020
tests init Jan 26, 2020
testsuite @ ab59e3a init Jan 26, 2020
.gitignore init Jan 26, 2020
.gitmodules fix: custom section Jan 27, 2020
Cargo.lock Yaw boy (#4) Feb 24, 2020
Cargo.toml Yaw boy (#4) Feb 24, 2020
LICENSE Create LICENSE (#5) Feb 24, 2020
Makefile init Jan 26, 2020
README.md Update README.md Feb 25, 2020

README.md

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

You can’t perform that action at this time.