mix proto.gen (OpenFeature Flagd v0.1.0)

View Source

Mix task for downloading and compiling flagd protobuf definitions.

This task:

  1. Downloads the evaluation.proto and sync.proto files from the official flagd Buf registry.
  2. Saves them to priv/protos/.
  3. Runs protoc to generate Elixir + gRPC modules into lib/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.