Include proto macros (#13)

This commit is contained in:
John Doneth
2019-09-30 14:05:37 -04:00
committed by Lucio Franco
parent 49872ce904
commit 3edaa424d9
13 changed files with 32 additions and 14 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
pub mod hello_world {
include!(concat!(env!("OUT_DIR"), "/helloworld.rs"));
tonic::include_proto!("helloworld");
}
use hello_world::{client::GreeterClient, HelloRequest};
+1 -1
View File
@@ -1,7 +1,7 @@
use tonic::{transport::Server, Request, Response, Status};
pub mod hello_world {
include!(concat!(env!("OUT_DIR"), "/helloworld.rs"));
tonic::include_proto!("helloworld");
}
use hello_world::{