Skip to content
This repository has been archived by the owner on Dec 1, 2019. It is now read-only.
/ ocaml-pb-plugin Public archive

A protoc plugin for generating OCaml code from protobuf (.proto) files.

License

Notifications You must be signed in to change notification settings

yallop/ocaml-pb-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Note: this plugin is now developed alongside the library in the pb repository.]

pb-plugin

A protoc plugin that turns .proto files into OCaml protobuf serialization functions built with the pb library.

Use

protoc --plugin=protoc-gen-custom=$(type -p pb_plugin) --custom_out=./build file.proto

Implementation notes

The interface between protoc and plugins is defined as a set of protobuf messages that describe the contents of a .proto file.

The pb-plugin plugin is bootstrapped. The file src/protoc_messages.ml that reads and writes messages passed between protoc and the plugin is generated from the file misc/messages_unnested.proto using pb-plugin itself


Travis build Status

About

A protoc plugin for generating OCaml code from protobuf (.proto) files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •