Skip to main content

Crate synapse_codegen

Crate synapse_codegen 

Source
Expand description

Synapse codegen - Generate server traits and client stubs from protobuf services

Re-exports§

pub use build_helper::CodegenConfig;
pub use build_helper::generate_synapse_code;
pub use parser::parse_proto_file;
pub use parser::parse_proto_file_with_includes;

Modules§

build_helper
Build helper for generating Synapse service code
parser
Parser for protobuf service definitions

Structs§

MethodDef
Method definition
ServiceDef
Service definition parsed from proto

Functions§

generate_client_stub
Generate client stub for a service
generate_server_trait
Generate server trait for a service
generate_service_code
Generate complete code for a service (server + client)