protobufs/scripts/rust-gen.sh
itzaname 65a9abe6d3
All checks were successful
continuous-integration/drone/push Build is passing
Fix rust perms
2024-02-19 23:53:37 -05:00

12 lines
356 B
Bash
Executable File

#!/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