uptown_funk 0.1.3

Define host functions compatible with Wasmer and Wasmtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use uptown_funk::{memory::Memory, Executor, StateMarker};

#[derive(Clone)]
pub struct SimpleExcutor {
    pub memory: Memory,
}

impl Executor for SimpleExcutor {
    type Return = ();

    fn memory(&self) -> Memory {
        self.memory.clone()
    }
}

pub struct Empty {}

impl StateMarker for Empty {}