Provide the type of interaction between the cita-node interaction type and the cita component, use protobuf to generate the corresponding **.rs file which include types and some set/get methods.
Currently only supports these versions. If there is a break version, it is temporarily not supported.
- Install google protoc
curl -OL https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip
unzip protoc-3.5.1-linux-x86_64.zip -d protoc3
sudo mv protoc3/bin/* /usr/local/bin/
sudo mv protoc3/include/* /usr/local/include/
- Install rust plugin
$ cargo install protobuf-codegen --vers 2.8.1 --force
$ cargo install grpc-compiler --vers 0.6.1 --force
- You can start modifying
./src/proto/*.protoand use./create_protobuf.shregenerate*.rs, finally synchronized to the cita-proto library