mix protobuf.gen (meshtastic_client v0.1.0)
Generates Elixir modules from protobuf definitions.
This task compiles all .proto files in priv/protos/ directory into Elixir modules using protoc and the protobuf Elixir plugin.
Prerequisites
You must have protoc installed:
# Fedora/RHEL
sudo dnf install protobuf-compiler
# Ubuntu/Debian
sudo apt-get install protobuf-compiler
# macOS
brew install protobufYou also need the Elixir protobuf plugin:
mix escript.install hex protobuf 0.14.0Usage
mix protobuf.genThis will generate Elixir modules in lib/meshtastic/proto/ from all .proto files found in priv/protos/.
Options
--proto-path PATH - Source directory for .proto files (default: priv/protos)
--output-path PATH - Output directory for generated modules (default: lib/meshtastic/proto)
--clean - Remove generated files before regenerating