ReProto Compiler
The ReProto project is a language-neutral protocol specification, aimed towards describing and generating code for handling messages exchanged through JSON-based APIs.
See Specification for details on what the syntax of .reproto
files is.
See Examples for some example API specifications.
Note: This project is in an Alpha-stage.
Example
Make you have gotten started with Rust.
Install reproto through cargo:
This will install the command into ~/.cargo/bin
, make sure it is in your $PATH
.
Using the FasterXML backend for Java:
Multiple paths can be included, and the same declarations will extend each other:
This will generate code for the plain python backend:
Maven Plugin
A Maven plugin that integrates reproto into the build lifecycle of a maven project.
VIM Plugin
A VIM plugin that provides syntax highlighting.