package extism-manifest

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type file = {
  1. path : string;
    (*

    Path to Wasm module on disk

    *)
  2. name : string option;
    (*

    Optional name of module for linking

    *)
  3. hash : string option;
    (*

    Optional hash for verification

    *)
}

WebAssembly file

val yojson_of_file : file -> Ppx_yojson_conv_lib.Yojson.Safe.t
val file_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> file
type data = {
  1. data : string;
    (*

    A string containing a Wasm module

    *)
  2. name : string option;
    (*

    Optional name of module for linking

    *)
  3. hash : string option;
    (*

    Optional hash for verification

    *)
}

WebAssembly module data

val yojson_of_data : data -> Ppx_yojson_conv_lib.Yojson.Safe.t
val data_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> data
type url = {
  1. url : string;
    (*

    A URL to a Wasm module

    *)
  2. headers : dict option;
    (*

    Request headers

    *)
  3. meth : string option;
    (*

    Request method

    *)
  4. name : string option;
    (*

    Optional name of module for linking

    *)
  5. hash : string option;
    (*

    Optional hash for verification

    *)
}

WebAssembly URL

val yojson_of_url : url -> Ppx_yojson_conv_lib.Yojson.Safe.t
val url_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> url
type t =
  1. | File of file
  2. | Data of data
  3. | Url of url

WebAssembly from a file, module data or URL

include Ppx_yojson_conv_lib.Yojsonable.S with type t := t
val t_of_yojson : Yojson.Safe.t -> t
val yojson_of_t : t -> Yojson.Safe.t
val file : ?name:string -> ?hash:string -> string -> t

Create t from filename

val data : ?name:string -> ?hash:string -> string -> t

Create t from WebAssembly module data

val url : ?headers:(string * string) list -> ?name:string -> ?meth:string -> ?hash:string -> string -> t

Create t from URL

OCaml

Innovation. Community. Security.