Update StatusBody to support gRPC trailers

Change StatusBody from a tuple struct to a struct containing both data
and trailers. Update the codegen to use the new StatusBody::new
constructor to specify gRPC status codes.

Also remove the temp_test_project.
This commit is contained in:
2026-05-15 18:57:15 -07:00
parent db89c9842a
commit 809a0d844c
5 changed files with 26 additions and 26 deletions
Generated
+1 -17
View File
@@ -1196,6 +1196,7 @@ version = "0.1.0"
dependencies = [
"bytes",
"futures-util",
"http",
"http-body",
"http-body-util",
"prost",
@@ -1352,23 +1353,6 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
[[package]]
name = "temp_test_project"
version = "0.1.0"
dependencies = [
"bytes",
"futures-util",
"http",
"http-body",
"http-body-util",
"roto-codegen",
"roto-runtime",
"roto-tonic",
"tokio-stream",
"tonic",
"tower 0.4.13",
]
[[package]]
name = "tempfile"
version = "3.27.0"