【文件属性】:
文件名称:cita_cloud_proto
文件大小:7KB
文件格式:ZIP
更新时间:2021-03-31 02:40:24
Rust
CITA Cloud Proto
为每个微服务设计grpc界面。
用法
[ dependencies ]
cita_cloud_proto = { git = " https://github.com/cita-cloud/cita_cloud_proto " }
生成python代码
pip install grpcio grpcio-tools
mkdir python
cd python
python3 -m grpc_tools.protoc -I../protos --python_out=. --grpc_python_out=. ../protos/blockchain.proto
python3 -m grpc_tools.protoc -I../protos --python_out=. --grpc_python_out=. ../protos/common.prot
【文件预览】:
cita_cloud_proto-master
----Cargo.toml(242B)
----protos()
--------executor.proto(656B)
--------network.proto(1000B)
--------common.proto(265B)
--------vm()
--------kms.proto(1KB)
--------blockchain.proto(2KB)
--------controller.proto(2KB)
--------consensus.proto(350B)
--------storage.proto(798B)
----src()
--------lib.rs(530B)
----build.rs(606B)
----README.md(1KB)
----.gitignore(42B)