Crate build
Available on crate feature
ttrpc only.Expand description
ttRPC codegen support for Rama.
Compiles .proto service definitions into Rust ttRPC stubs (a service trait, a
rama_ttrpc::Client impl and server dispatch) for use with rama-ttrpc. Drive it
from a build.rs and include the output with rama_ttrpc::include_proto!.
The API mirrors rama-grpc-build: use compile_protos for the simple case, or
configure for a RamaTtrpcProtoBuilder when you need options such as a custom
output directory.
§Rama
Crate used by the end-user rama crate and rama crate authors alike.
Learn more about rama:
- Github: https://github.com/plabayo/rama
- Book: https://ramaproxy.org/book/
Structs§
- Rama
Ttrpc Proto Builder - Builder for configuring and generating ttRPC code from
.protofiles. - Ttrpc
Service Generator - A service generator that takes a service descriptor and generates Rust code for a
ttrpcservice.
Functions§
- compile_
protos - Compile
.protofiles into Rust ttRPC stubs during a Cargo build. - configure
- Configure
rama-ttrpc-buildcode generation, returning aRamaTtrpcProtoBuilder.