yats.git

ref: 36d56ef4702983ceef8ac16de5efdf7dee78844e

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