Skip to content

Latest commit

 

History

History

rudelblinken-runtime

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Rudelblinken Runtime

Host runtime for rudelblinken wasm modules. This crate provides functionality to link your host implementation with a rudelblinken wasm module.

For testing this provides a simulated host implementation in [rudelblinken_runtime::emulated_host::EmulatedHost]

You can use it like this:

use rudelblinken_runtime::emulated_host::EmulatedHost;
use rudelblinken_runtime::linker::setup;

const WASM_MOD: &[u8] = include_bytes!(
    "../../rudelblinken-wasm/target/wasm32-unknown-unknown/release/rudelblinken_wasm.wasm"
);

let host = EmulatedHost::new();
let mut instance = setup(WASM_MOD, host).unwrap();
instance.run().unwrap();