anuraaga / go-protoc-gen-builtins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-protoc

go-protoc is a cut-down distribution of protoc, the protocol buffers compiler that can be built with Go. It does not actually reimplement any functionality of protoc in Go, instead compiling the original source code to WebAssembly, and executing with the pure Go Wasm runtime wazero. This means that go install or go run can be used to execute it, with no need to rely on external package managers such as Homebrew.

Note that currently, go-protoc DOES NOT support executing protoc plugins, such as gRPC plugins. Buf is a pure Go tool that can execute protoc plugins. It is intended to use go-protoc together with buf to generate code for languages built-in to protoc. View the Buf documentation on setting protoc_path and the languages that are supported.

A full example of usage can be found as an integration test.

About


Languages

Language:Go 95.6%Language:Dockerfile 4.4%