Skip to content

An example C++ protobuf compiler plugin built with Bazel

Notifications You must be signed in to change notification settings

vsco/protoc-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A demo protoc plugin

Build Status

An example plugin that alters Java code generated by the default protoc implementation. VSCO uses a similar plugin to add capabilities to Java code generated for our Android application.

This demo adds some reflection features to a hypothetical telemetry system that sends protobufs over gRPC.

Build instructions

1.) Install Bazel http://www.bazel.io/docs/install.html. We use this build tool because that's what google/protobufs uses. Bazel requires Java.

2.) Build with bazel build main:protoc-gen-demo

3.) A sample invocation of the plugin, protoc-gen-demo, is available in script/integration-test. This script can be run from the command line.

About

An example C++ protobuf compiler plugin built with Bazel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published