Support gRPC packages in generated code

Include package names in the `NamedService` identifier and request
paths. Change generated imports to use `crate` and add `tokio` and
`tokio-stream` dependencies to `roto-tonic`.
This commit is contained in:
2026-05-16 16:57:01 -07:00
parent 809a0d844c
commit 2202548ae5
4 changed files with 23 additions and 4 deletions
+2
View File
@@ -12,4 +12,6 @@ http-body = "1.0"
http-body-util = "0.1"
tower = "0.4"
futures-util = "0.3"
tokio-stream = { version = "0.1", features = ["net"] }
tokio = { version = "1.38", features = ["full"] }
http = "1.1"
+4
View File
@@ -8,6 +8,10 @@ use std::future::Future;
use std::task::{Context, Poll};
use http_body::Body;
pub mod generated {
pub mod helloworld;
}
pub struct RotoCodec<T, U> {
_phantom: PhantomData<(T, U)>,
}