Protobuf compiler plugin that generates .rbs
"Ruby Type Specification" files.
go get github.com/fundthmcalculus/protoc-gen-rbs
protoc --rbs_out=. example.proto
To disable generation of gRPC .rbs
files, use the grpc=false
option:
protoc --rbs_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