package ocaml-protoc

  1. Overview
  2. Docs

Generate all the code for a given OCaml module.

module Plugin = Pb_codegen_plugin
type ocaml_mod = {
  1. ml : F.scope;
  2. mli : F.scope;
}
val codegen : Ot.proto -> generate_make:bool -> proto_file_options:Pb_option.set -> proto_file_name:string -> services:bool -> Plugin.t list -> ocaml_mod

codegen types returns a full code listing for the .ml and the .mli files.

OCaml

Innovation. Community. Security.