package ocaml-protoc

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ocaml_protoc_compiler_lib.Pb_codegen_all

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 -> mode:Pb_codegen_mode.t -> proto_file_options:Pb_raw_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.