pub fn generate_files(
proto_file: &[FileDescriptorProto],
file_to_generate: &[String],
options: &Options,
) -> Result<Vec<GeneratedFile>>Expand description
Generate ConnectRPC service bindings + buffa message types from proto descriptors, appended into a single per-file output.
Returns one GeneratedFile per proto file in file_to_generate. Does
not emit a mod.rs — callers assemble the module tree themselves
(typically connectrpc-build via an include!-based file).
This is the unified path: service stubs reference message types via
super::-relative paths, so both must live in the same module tree.
Options::extern_paths is ignored.
§Errors
Returns an error if buffa-codegen fails (e.g. unsupported proto
feature) or if the generated service binding Rust does not parse
under syn (indicates a bug in this crate).