package ppx_deriving_protobuf
A Protocol Buffers codec generator for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
ppx_deriving_protobuf-v3.0.0.tbz
sha256=5287ef0db8d4f7a62b0bb7a21010172d602aa45a7fecc2d4cb9681366ddf81b5
sha512=6bc04d10c2448a35c9c2404be01aab616d51cdda563f6f3b8d213db18614233746c6bf2190a3f12881f544e91c18aa01d56f9aeeb7b01eddfe68123b88703625
doc/ppx_deriving_protobuf/Ppx_deriving_protobuf/index.html
Module Ppx_deriving_protobuf
Source
Source
type pb_encoding =
| Pbe_varint
| Pbe_zigzag
| Pbe_bits32
| Pbe_bits64
| Pbe_bytes
| Pbe_packed of pb_encoding
Source
and pb_field = {
pbf_name : string;
pbf_extname : string;
pbf_path : string list;
pbf_key : int;
pbf_enc : pb_encoding;
pbf_type : pb_type;
pbf_kind : pb_kind;
pbf_default : Ppxlib.Parsetree.expression option;
pbf_loc : Ppxlib.Location.t;
}
Source
type error =
| Pberr_attr_syntax of Ppxlib.Location.t * [ `Key | `Encoding | `Bare | `Default | `Packed ]
| Pberr_wrong_attr of Ppxlib.Parsetree.attribute
| Pberr_no_key of Ppxlib.Location.t
| Pberr_key_invalid of Ppxlib.Location.t * int
| Pberr_key_duplicate of int * Ppxlib.Location.t * Ppxlib.Location.t
| Pberr_abstract of Ppxlib.Parsetree.type_declaration
| Pberr_open of Ppxlib.Parsetree.type_declaration
| Pberr_wrong_ty of Ppxlib.Parsetree.core_type
| Pberr_wrong_tparm of Ppxlib.Parsetree.core_type
| Pberr_no_conversion of Ppxlib.Location.t * pb_type * pb_encoding
| Pberr_packed_bytes of Ppxlib.Location.t
| Pberr_dumb_protoc of Ppxlib.Location.t
| Pberr_ocaml_expr of Ppxlib.Location.t
Source
val derive_reader_bare :
string list ->
'a ->
Ppxlib.type_declaration ->
Astlib.Ast_502.Parsetree.value_binding option
Source
val derive_writer_bare :
'a ->
Ppxlib.type_declaration ->
Astlib.Ast_502.Parsetree.value_binding option
Source
val str_of_type :
options:'a ->
path:Ppxlib_ast__Versions.OCaml_502.Ast.Asttypes.label list ->
Ppxlib.Parsetree.type_declaration ->
Astlib.Ast_502.Parsetree.value_binding list
Source
val sig_of_type :
options:'a ->
path:'b ->
Ppxlib.Parsetree.type_declaration ->
Astlib.Ast_502.Parsetree.signature_item list
Source
val write_protoc :
fmt:Format.formatter ->
path:Ppxlib_ast__Versions.OCaml_502.Ast.Asttypes.label list ->
?import:string list ->
Ppxlib.Parsetree.type_declaration ->
unit
Source
val parse_options :
options:(string * Ppxlib_ast.Ast.expression) list ->
path:Ppxlib_ast__Versions.OCaml_502.Ast.Asttypes.label list ->
Ppxlib.Parsetree.type_declaration list ->
unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>