Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

🦀 A wasm interpreter in Rust

Resources

License

Releases

No releases published

Packages

No packages published