aboutsummaryrefslogtreecommitdiff
path: root/scripts/proto_update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/proto_update.sh')
-rwxr-xr-xscripts/proto_update.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/proto_update.sh b/scripts/proto_update.sh
index 1062b917..63534652 100755
--- a/scripts/proto_update.sh
+++ b/scripts/proto_update.sh
@@ -40,6 +40,13 @@ export CARGO_HOME=$REPO/objs/rust/.cargo
cd $REPO
cargo build --manifest-path $CARGO
+# run protoc command to generate grpc proto rust files
+# Possibly need to install compilers:
+# $ cargo install protobuf-codegen
+# $ cargo install grpcio-compiler
+# TODO: Need to add required crate mappings to work in emu-master-dev
+# protoc --rust_out=./rust/proto/src --grpc_out=./rust/proto/src --plugin=protoc-gen-grpc=`which grpc_rust_plugin` -I./proto -I../../external/protobuf/src -I../../packages/modules/Bluetooth/tools/rootcanal/proto ./proto/netsim/frontend.proto
+
# Undo changed to Cargo.toml
git checkout $CARGO