Protobuf compiler plugin that generates Sorbet .rbi
"Ruby Interface" files.
go get github.com/coinbase/protoc-gen-rbi
protoc --rbi_out=. example.proto
To disable generation of gRPC .rbi
files, use the grpc=false
option:
protoc --rbi_out=grpc=false:. example.proto
For the input example.proto:
- example_pb.rbi contains the message(s) interface
- example_services_pb.rbi contains the service(s) interface