mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-28 18:21:20 +00:00
* Remove unused circular-buffer crate * Move transports into subdirectory * Move misc into subdirectory * Move stores into subdirectory * Move multiplexers * Move protocols * Move libp2p top layer * Fix Test: skip doctest if secio isn't enabled
16 lines
472 B
Bash
Executable File
16 lines
472 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This script regenerates the `src/dht_proto.rs` file from `dht.proto`.
|
|
|
|
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 --version 2.0.2 protobuf-codegen; \
|
|
protoc --rust_out . dht.proto;\
|
|
protoc --rust_out . record.proto"
|
|
|
|
sudo chown $USER:$USER *.rs
|
|
|
|
mv -f dht.rs ./src/protobuf_structs/dht.rs
|
|
mv -f record.rs ./src/protobuf_structs/record.rs
|