【文件属性】:
文件名称:ttrpc-rust:ttrpc的Rust实现(针对低内存环境的GRPC)
文件大小:115KB
文件格式:ZIP
更新时间:2021-05-13 22:25:46
Rust
ttrpc-rust
ttrpc-rust是容器化的非核心子项目
ttrpc-rust是锈版本 。 是用于低内存环境的GRPC。
从 gRPC编译器修改了ttrpc-rust ttrpc_rust_plugin ttrpc编译。
用法
1.使用protoc命令生成
要从原始文件生成源:
从github.com/protocolbuffers/protobuf安装协议
安装protobuf-codegen
cargo install --force protobuf-codegen
从ttrpc-rust / compiler安装ttrpc_rust_plugin
cd ttrpc-rust/compiler
cargo install --force --path .
生成源:
$ protoc --rust_out=. --ttrpc_out=. --plugin=prot
【文件预览】:
ttrpc-rust-master
----MAINTAINERS(166B)
----example()
--------async-client.rs(3KB)
--------build.rs(2KB)
--------protocols()
--------async-server.rs(3KB)
--------Cargo.toml(979B)
--------server.rs(3KB)
--------client.rs(4KB)
----build.rs(426B)
----.github()
--------ISSUE_TEMPLATE()
--------workflows()
----LICENSE(11KB)
----src()
--------error.rs(2KB)
--------asynchronous()
--------sync()
--------lib.rs(2KB)
--------ttrpc.proto(9KB)
--------common.rs(4KB)
--------context.rs(4KB)
----Cargo.toml(1KB)
----.gitignore(121B)
----compiler()
--------src()
--------Cargo.toml(638B)
--------README.md(490B)
----Makefile(448B)
----README.md(4KB)
----ttrpc-codegen()
--------src()
--------Cargo.toml(655B)
--------README.md(1KB)
--------LICENSE.txt(1KB)