package extism-manifest

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type file = {
  1. path : string;
  2. name : string option;
  3. hash : string option;
}

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;
  2. name : string option;
  3. hash : string option;
}

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;
  2. headers : dict option;
  3. name : string option;
  4. meth : string option;
  5. hash : string option;
}

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 wasm from filename

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

Create wasm from WebAssembly module data

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

Create wasm from URL