https://github.com/coinbase/protoc-gen-rbi
Protobuf compiler plugin that generates Sorbet .rbi "Ruby Interface" files.
https://github.com/coinbase/protoc-gen-rbi
Last synced: about 1 year ago
JSON representation
Protobuf compiler plugin that generates Sorbet .rbi "Ruby Interface" files.
- Host: GitHub
- URL: https://github.com/coinbase/protoc-gen-rbi
- Owner: coinbase
- License: apache-2.0
- Created: 2019-12-18T18:44:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-16T20:37:00.000Z (about 2 years ago)
- Last Synced: 2024-11-06T20:11:41.447Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 1.41 MB
- Stars: 40
- Watchers: 11
- Forks: 33
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# protoc-gen-rbi
Protobuf compiler plugin that generates [Sorbet](https://sorbet.org/) `.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](testdata/example.proto):
- [example_pb.rbi](testdata/example_pb.rbi) contains the message(s) interface
- [example_services_pb.rbi](testdata/example_services_pb.rbi) contains the service(s) interface