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.
Generate rust files:
Generate go files:
Currently only supports these versions. If there is a break version, it is temporarily not supported.
-
Install google protoc
-
Generate rust files, install rust plugin
$ cargo install protobuf --vers 1.4.4
$ cargo install grpc-compiler
- Generate go files, install go plugin
$ go get -u github.com/lleveque/protoc-gen-go