Skip to content

cita-cloud/libproto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

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.

Dependences

Currently only supports these versions. If there is a break version, it is temporarily not supported.

Usage

  1. 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/
  1. Install rust plugin
$ cargo install protobuf-codegen --vers 2.8.1 --force
$ cargo install grpc-compiler --vers 0.6.1 --force
  1. You can start modifying ./src/proto/*.proto and use ./create_protobuf.sh regenerate *.rs, finally synchronized to the cita-proto library

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors