package extism-manifest

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Extism_manifest.WasmSource

Sourcetype 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

Sourceval yojson_of_file : file -> Ppx_yojson_conv_lib.Yojson.Safe.t
Sourceval file_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> file
Sourcetype 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

Sourceval yojson_of_data : data -> Ppx_yojson_conv_lib.Yojson.Safe.t
Sourceval data_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> data
Sourcetype 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

Sourceval yojson_of_url : url -> Ppx_yojson_conv_lib.Yojson.Safe.t
Sourceval url_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> url
Sourcetype 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
Sourceval t_of_yojson : Yojson.Safe.t -> t
Sourceval yojson_of_t : t -> Yojson.Safe.t
Sourceval file : ?name:string -> ?hash:string -> string -> t

Create t from filename

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

Create t from WebAssembly module data

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

Create t from URL

OCaml

Innovation. Community. Security.