Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

Latest commit

 

History

History
45 lines (32 loc) · 1.03 KB

README.md

File metadata and controls

45 lines (32 loc) · 1.03 KB

Overview

Provide the type of interaction between the cita-node interaction type and the cita component, use protobuf to generate the corresponding file. And have generated files for the following languages in advance:

  • Rust
  • go
  • javascript
  • java

You can use them directly, and be free to use the proto files in protos directory to generate to the languages you needed.

Dependences

Generate rust files:

Generate go files:

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

Usage

  1. Install google protoc

  2. Generate rust files, install rust plugin

$ cargo install protobuf --vers 1.4.4
$ cargo install grpc-compiler
  1. Generate go files, install go plugin
$ go get -u github.com/lleveque/protoc-gen-go