A Protobuf compiler plugin for Onyx, to be used with the official protobuf package.
On Linux, WSL and MacOS, use the ./install.sh
script to install protoc-gen-onyx
onto your system.
This script will do 4 things:
- Install dependencies of this project.
- Build the project from scratch into
protoc.wasm
. - Move the
protoc.wasm
file intoONYX_PATH/tools/protoc.wasm
.- This makes
onyx protoc
a valid command.
- This makes
- Make
protoc-gen-onyx
executable and copy it toONYX_PATH/bin/protoc-gen-onyx
forprotoc
to find it.- This assumes that
ONYX_PATH/bin
is in yourPATH
.
- This assumes that
See the protobuf package README for example usage.