package octez-protocol-compiler

  1. Overview
  2. Docs
Tezos: economic-protocol compiler

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.1.tar.gz
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053

doc/octez-protocol-compiler/Octez_protocol_compiler/Compiler/index.html

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 octez-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 -> string -> unit
OCaml

Innovation. Community. Security.