An open API service indexing awesome lists of open source software.

https://github.com/aphistic/protoc


https://github.com/aphistic/protoc

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# protoc

This image can be used to generate protobuf and grpc code for various languages.

## Usages

### Go

```bash
$ docker run --rm -it -u $(id -u):$(id -g) -v $PWD:/src:rw aphistic/protoc --gofast_out=. *.proto
```

### Elixir
```bash
$ docker run --rm -it -u $(id -u):$(id -g) -v $PWD:/src:rw aphistic/protoc --elixir_out=. *.proto
```

_gRPC:_
```bash
$ docker run --rm -it -u $(id -u):$(id -g) -v $PWD:/src:rw aphistic/protoc --elixir_out=plugins=grpc:. *.proto
```

### Rust
_gRPC:_
```bash
$ docker run --rm -it -u $(id -u):$(id -g) -v $PWD:/src:rw aphistic/protoc --rust_out=. --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_rust_plugin` *.proto
```