Module Link.Wasm_binary

type importdesc =
  1. | Func of int
  2. | Table
  3. | Mem
  4. | Global
  5. | Tag
type import = {
  1. module_ : string;
  2. name : string;
  3. desc : importdesc;
}
val check : contents:string -> bool

Checks whether contents is a Wasm Module

val check_file : file:string -> bool

Checks whether file contains a Wasm Module

val read_imports : file:string -> import list
val append_source_map_section : file:string -> url:string -> unit