package octez-protocol-compiler

  1. Overview
  2. Docs

Module Octez_protocol_compiler.CompilerSource

Sourceval default_warnings : string
Sourceval default_warn_error : string

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

Sourceval preloaded_cmis : Persistent_env.Persistent_signature.t Tezos_base.TzPervasives.String.Hashtbl.t
Sourceval default_load : unit_name:string -> Persistent_env.Persistent_signature.t option
Sourceval load_cmi_from_file : string -> unit
Sourceval load_embedded_cmi : (string * string) -> unit
Sourceval 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).

Sourceval all_files : [< `File of string * 'a ] list -> (string * 'a) list
Sourceval tezos_protocol_env : (string * string) list
Sourceval register_env : (string * string) list

Helpers

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

Main

Sourcetype driver = {
  1. compile_ml : ?for_pack:string -> string -> string;
  2. pack_objects : string -> string list -> string;
}
Sourceval parse_options : bool -> string -> unit
Sourceval main : driver -> unit
OCaml

Innovation. Community. Security.