package ocaml-protoc-plugin
Plugin for protoc protobuf compiler to generate ocaml definitions from a .proto file
Install
Dune Dependency
Authors
Maintainers
Sources
ocaml-protoc-plugin-4.1.0.tbz
sha256=2e02e070c3bc18c5b2c804012d6db8c9451fb4b23a7a4256aab3e9fe96aaf862
sha512=4fe3a392f897a531eebf22c15a55623512ac0d9795da68188c367ab1f216d6b936ad22064be7179d04f204a22324ede772c7c4678a3fe3b2ca760aecb5e87999
doc/src/ocaml-protoc-plugin.google_types/empty.ml.html
Source file empty.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
(************************************************) (* AUTOGENERATED FILE - DO NOT EDIT! *) (************************************************) (* Generated by: ocaml-protoc-plugin *) (* https://github.com/issuu/ocaml-protoc-plugin *) (************************************************) (* Source: google/protobuf/empty.proto Syntax: proto3 Parameters: debug=false annot='' opens=[] int64_as_int=true int32_as_int=true fixed_as_int=false singleton_record=false *) open Ocaml_protoc_plugin.Runtime [@@warning "-33"] module Google = struct module Protobuf = struct module rec Empty : sig val name': unit -> string type t = unit val make : unit -> t val to_proto: t -> Runtime'.Writer.t val from_proto: Runtime'.Reader.t -> (t, [> Runtime'.Result.error]) result end = struct let name' () = "empty.google.protobuf.Empty" type t = unit let make = fun () -> () let to_proto = let apply = fun ~f:f' () -> f' [] in let spec = Runtime'.Serialize.C.( nil ) in let serialize = Runtime'.Serialize.serialize [] (spec) in fun t -> apply ~f:serialize t let from_proto = let constructor = fun _extensions -> () in let spec = Runtime'.Deserialize.C.( nil ) in let deserialize = Runtime'.Deserialize.deserialize [] spec constructor in fun writer -> deserialize writer |> Runtime'.Result.open_error end end end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>