Skip to content

grpc-protobuf: add server codegen utils - #2818

Open
arjan-bal wants to merge 8 commits into
grpc:masterfrom
arjan-bal:server-protobuf
Open

grpc-protobuf: add server codegen utils#2818
arjan-bal wants to merge 8 commits into
grpc:masterfrom
arjan-bal:server-protobuf

Conversation

@arjan-bal

@arjan-bal arjan-bal commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

This change introduces the types required for server codegen (see this branch for the full set of changes).

Additionally, this PR mvoes the ServerStatus from the grpc crate to the grpc-protobuf crate. ServerStatus wraps the standard status type to prevent users from accidentally forwarding client errors from a server handler using the ? operator.

Finally, this change re-exports the async_trait macro from the grpc crate (similar to tonic). Because async trait implementations require #[async_trait], re-exporting it avoids requiring applications to add async-trait as a direct dependency in their Cargo.toml while using the generated code.

@arjan-bal
arjan-bal force-pushed the server-protobuf branch 2 times, most recently from cfdffb8 to 4640ba4 Compare August 19, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants