12 lines
356 B
Bash
Executable File
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 |