package extism

  1. Overview
  2. Docs

Extism bindings for OCaml

val extism_version : unit -> string

Returns the libextism version, not the version of the OCaml library

module Manifest = Extism_manifest
module Error : sig ... end
module Val_type : sig ... end

Val_type enumerates every possible argument/result type

module Val : sig ... end

Val represents low-level WebAssembly values

module Val_array : sig ... end

Val_array is used for input/output parameters for host functions

module Current_plugin : sig ... end

Current_plugin represents the plugin that is currently running, it should it should only be used from a host function

module Function : sig ... end

Function is used to create new a new function, which can be called from a WebAssembly plugin

module Context : sig ... end

Context is used to group plugins

val with_context : (Context.t -> 'a) -> 'a

Execute a function with a fresh context and free it after

val set_log_file : ?level:[ `Error | `Warn | `Info | `Debug | `Trace ] -> string -> bool
module Plugin : sig ... end

Plugins contain functions that can be called

OCaml

Innovation. Community. Security.