ref: 0a1177e5eb4a1e591d25e348527cd876b96896af
clients/rust/generate.sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
#! /bin/bash -x cd $(dirname $0) TARGET_DIR="../../server/proto/" SOURCES="../../protobuf/yats-grpc.proto" protoc --rust_out=./src \ --grpc_out=./src \ --plugin=protoc-gen-grpc=`which grpc_rust_plugin` \ --proto_path ../../protobuf/ \ ../../protobuf/yats-grpc.proto exit 0 for s in ${SOURCES}; do protoc --go_out=${TARGET_DIR}\ --go_opt=paths=source_relative\ --go-grpc_out=${TARGET_DIR}\ --go-grpc_opt=paths=source_relative\ ${s} done |