mix livekit.proto.generate (LiveKit v0.1.0)

Copy Markdown View Source

Regenerates the protobuf modules in lib/livekit/proto from priv/proto.

mix proto.fetch      # vendor the pinned .proto definitions
mix proto.generate   # regenerate lib/livekit/proto

Requirements

protoc and the protoc-gen-elixir plugin must be on PATH:

mix escript.install hex protobuf 0.14.1
export PATH="$HOME/.mix/escripts:$PATH"

Module names

All files are compiled in a single protoc invocation so that cross-file message references resolve. The livekit protobuf package would otherwise nest modules under LiveKit.Proto.Livekit, so generated code is rewritten to the flat, predictable names that service modules use:

LiveKit.Proto.ListRoomsRequest
LiveKit.Proto.Room
LiveKit.Proto.ParticipantInfo.Kind

Generated files are committed to the repository, so a fresh clone compiles without protoc. Generation never runs at compile time or during application startup.