package tezos-protocol-compiler

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val warnings : string
val warn_error : string

Override the default 'Env.Persistent_signature.load' with a lookup in locally defined hashtable.

val preloaded_cmis : Persistent_env.Persistent_signature.t Tezos_base__TzPervasives.String.Hashtbl.t
val load_cmi_from_file : string -> unit
val load_embedded_cmi : (string * string) -> unit
val load_embedded_cmis : (string * string) list -> unit

Compilation environment.

tezos_protocol_env defines the list of cmi available while compiling the protocol version. The cmi are packed into the tezos-node binary by using ocp-ocamlres, see the Makefile.

register_env defines a complementary list of cmi available while compiling the generated register.ml file (that register the protocol first-class module into the Updater.versions hashtable).

val tezos_protocol_env : (string * string) list
val register_env : (string * string) list

Helpers

val create_file : ?perm:Unix.file_perm -> string -> string -> unit
val debug_flag : bool Stdlib.ref
val debug : ('a, Stdlib.Format.formatter, unit) Stdlib.format -> 'a
val mktemp_dir : unit -> string

Main

type driver = {
  1. compile_ml : ?for_pack:string -> string -> string;
  2. pack_objects : string -> string list -> string;
}
val main : driver -> unit
OCaml

Innovation. Community. Security.