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:
@@ -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"
|
||||
|
||||
@@ -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)>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user