Module Mavryk_scoru_wasm_fast.Funcs

type host_state = {
  1. retrieve_mem : unit -> Mavryk_wasmer.Memory.t;
  2. buffers : Mavryk_webassembly_interpreter.Eval.buffers;
  3. mutable durable : Mavryk_scoru_wasm.Durable.t;
}

Host state environment for Fast Execution

make ~debug builtins host_state generates a list of host functions that can be imported by WebAssembly modules. If debug is true, an implementation for write_debug will be picked that prints to the standard output.