protoc-gen-rbi icon indicating copy to clipboard operation
protoc-gen-rbi copied to clipboard

Protobuf compiler plugin that generates Sorbet .rbi "Ruby Interface" files.

protoc-gen-rbi

Protobuf compiler plugin that generates Sorbet .rbi "Ruby Interface" files.

Installation

go get github.com/coinbase/protoc-gen-rbi

Usage

protoc --rbi_out=. example.proto

To disable generation of gRPC .rbi files, use the grpc=false option:

protoc --rbi_out=grpc=false:. example.proto

Example

For the input example.proto:

  • example_pb.rbi contains the message(s) interface
  • example_services_pb.rbi contains the service(s) interface