Include proto macros (#13)
This commit is contained in:
committed by
Lucio Franco
parent
49872ce904
commit
3edaa424d9
@@ -1,5 +1,5 @@
|
||||
pub mod pb {
|
||||
include!(concat!(env!("OUT_DIR"), "/grpc.examples.echo.rs"));
|
||||
tonic::include_proto!("grpc.examples.echo");
|
||||
}
|
||||
|
||||
use http::header::HeaderValue;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
pub mod pb {
|
||||
include!(concat!(env!("OUT_DIR"), "/grpc.examples.echo.rs"));
|
||||
tonic::include_proto!("grpc.examples.echo");
|
||||
}
|
||||
|
||||
use pb::{EchoRequest, EchoResponse};
|
||||
|
||||
Reference in New Issue
Block a user