mix proto.gen (OpenFeature Flagd v0.1.0)
View SourceMix task for downloading and compiling flagd protobuf definitions.
This task:
- Downloads the
evaluation.proto
andsync.proto
files from the official flagd Buf registry. - Saves them to
priv/protos/
. - Runs
protoc
to generate Elixir + gRPC modules intolib/openfeature/provider/flagd/proto/
.
Usage
Run the following from the root of the project:
mix proto.gen
This is primarily intended for development workflows until buf
supports Elixir
as a target. Generated modules are checked in and used by the Flagd provider.