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.wasmfile intoONYX_PATH/tools/protoc.wasm.- This makes
onyx protoca valid command.
- This makes
- Make
protoc-gen-onyxexecutable and copy it toONYX_PATH/bin/protoc-gen-onyxforprotocto find it.- This assumes that
ONYX_PATH/binis in yourPATH.
- This assumes that
See the protobuf package README for example usage.