mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-29 10:41:21 +00:00
13 lines
389 B
Bash
13 lines
389 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# This script regenerates the `src/structs_proto.rs` and `src/keys_proto.rs` files from
|
||
|
# `structs.proto` and `keys.proto`.
|
||
|
|
||
|
sudo docker run --rm -v `pwd`:/usr/code:z -w /usr/code rust /bin/bash -c " \
|
||
|
apt-get update; \
|
||
|
apt-get install -y protobuf-compiler; \
|
||
|
cargo install protobuf; \
|
||
|
protoc --rust_out . structs.proto"
|
||
|
|
||
|
mv -f structs.rs ./src/structs_proto.rs
|