package extism

  1. Overview
  2. Docs

Module ExtismSource

Extism bindings for OCaml

Sourceval extism_version : unit -> string

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

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

Val_type enumerates every possible argument/result type

Sourcemodule Val : sig ... end

Val represents low-level WebAssembly values

Sourcemodule Val_array : sig ... end

Val_array is used for input/output parameters for host functions

Sourcemodule Current_plugin : sig ... end

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

Sourcemodule Function : sig ... end

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

Sourcemodule Context : sig ... end

Context is used to group plugins

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

Execute a function with a fresh context and free it after

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

Plugins contain functions that can be called

OCaml

Innovation. Community. Security.