This project contains following modules:
protostuff-parser
- ANTLR4-based parser for proto2/proto3 files. Parsing result is represented as an object model, containing all the information from proto files.protostuff-generator
- code generator; current version can generate java code (forprotostuff
runtime library) and HTML documentation.protostuff-cli
- command-line interface.protostuff-maven-plugin
- maven plugin.
<build>
<plugins>
<plugin>
<artifactId>protostuff-maven-plugin</artifactId>
<groupId>io.protostuff</groupId>
<version>2.2.18</version>
<executions>
<execution>
<id>generate-java-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Current status: development in progress.
Generated code API: draft.
protostuff-compiler
can generate html from proto files.
Sample output: http://www.protostuff.io/samples/protostuff-compiler/html/#com.example.Address
This generator is an alternative to https://github.com/estan/protoc-gen-doc
Component | Version |
---|---|
JDK | 1.8+ |
Apache Maven | 3.x |
mvn clean install