package ocaml-protoc-plugin
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Plugin for protoc protobuf compiler to generate ocaml definitions from a .proto file
Install
dune-project
Dependency
Authors
Maintainers
Sources
ocaml-protoc-plugin-6.2.0.tbz
sha256=46a87788d39e09d5e824fcab29718f9625787f5b0ffb8fad3bb412567c01ecf6
sha512=bffcbe124320c028cf30b7ff7a69aa214d29eeae9fea0ace4739bcc040fde3d6896a01a075fb6b66832a061d4f3ab185ddbb03235781ddea4a618f9e29626586
Description
The plugin generates ocaml type definitions, serialization and deserialization functions from a protobuf file. The types generated aims to create ocaml idiomatic types;
- messages are mapped into modules
- oneof constructs are mapped to polymorphic variants
- enums are mapped to adt's
- map types are mapped to assoc lists
- all integer types are mapped to int by default (exact mapping is also possible)
- all floating point types are mapped to float.
- packages are mapped to nested modules
The package aims to be a 100% compliant protobuf implementation. It also includes serializing to and from json based on protobuf json specification
Published: 17 Sep 2025
Dependencies (9)
- ptime
-
base64
>= "3.1.0" -
conf-pkg-config
build -
omd
>= "2.0" - ppx_inline_test
- ppx_expect
-
ocaml
>= "4.08.0" -
dune
>= "3.12" -
conf-protoc
>= "1.0.0"
Dev Dependencies (7)
-
yojson
with-test -
dune-configurator
with-test -
odoc
with-doc -
bisect_ppx
with-test -
ppx_deriving
with-test -
conf-c++
with-test -
conf-protoc-dev
with-test
Used by (3)
-
caisar
>= "0.2.1" - caisar-onnx
- grpc-examples
Conflicts
None
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page