protobufs/scripts/rust-gen.sh
Quaternions db2e2e990f
Some checks failed
continuous-integration/drone/push Build is failing
Rust grpc builder (#1)
My attempt after reading many online documentations

Reviewed-on: #1
Co-authored-by: Quaternions <krakow20@gmail.com>
Co-committed-by: Quaternions <krakow20@gmail.com>
2024-02-20 04:51:58 +00:00

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