Quaternions
db2e2e990f
Some checks failed
continuous-integration/drone/push Build is failing
My attempt after reading many online documentations Reviewed-on: #1 Co-authored-by: Quaternions <krakow20@gmail.com> Co-committed-by: Quaternions <krakow20@gmail.com>
12 lines
356 B
Bash
12 lines
356 B
Bash
#!/bin/bash
|
|
|
|
for f in *.proto
|
|
do
|
|
name=$(basename $f .proto)
|
|
mkdir -p ./rust-grpc/$name
|
|
protoc \
|
|
--prost_out=./rust-grpc/$name \
|
|
--tonic_out=./rust-grpc/$name \
|
|
$f
|
|
#protoc --experimental_allow_proto3_optional --rust_out=./rust-grpc/$name --rust_opt=paths=source_relative --rust-grpc_out=./rust-grpc/$name --rust-grpc_opt=paths=source_relative
|
|
done |