Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Protoc plugin developer guides

45 views
Skip to first unread message

Thomas E

unread,
Mar 24, 2025, 9:52:43 AMMar 24
to Protocol Buffers
Hello people,

I might be missing something, and thus this might be a very easy question to answer. But due to some requirements I'm currently exploring the idea of building a protoc plugin myself. 

However, I can't really find any good resources of what the correct approach is, and i'm not really feeling reverse engineering an existing plugin at the moment. Can anyone point me in the right direction?

I found this Medium article:
https://medium.com/cloud-native-daily/create-and-run-a-protobuf-plugin-9471e16e8ad

But this doesn't provide me with an deeper understanding of what the compiler actually does and how to use it to its full potential.

Kind regards,

Thomas Ewalts

Daz Wilkin

unread,
Mar 24, 2025, 8:52:06 PMMar 24
to Protocol Buffers
See protogen.

It's a Go package developed by Google team to facilitate plugin development.

It includes an explanation of the transformation functionality too. 

Daz Wilkin

unread,
Mar 24, 2025, 8:57:20 PMMar 24
to Protocol Buffers
And I just discovered bufbuild/protoplugin which works with it.
Reply all
Reply to author
Forward
0 new messages