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
+2 -2
View File
@@ -4,8 +4,8 @@ use std::time::{Duration, Instant};
use tokio::timer::Interval;
use tonic::Request;
mod route_guide {
include!(concat!(env!("OUT_DIR"), "/routeguide.rs"));
pub mod route_guide {
tonic::include_proto!("routeguide");
}
use route_guide::client::RouteGuideClient;
+1 -1
View File
@@ -11,7 +11,7 @@ use tonic::transport::Server;
use tonic::{Request, Response, Status};
pub mod routeguide {
include!(concat!(env!("OUT_DIR"), "/routeguide.rs"));
tonic::include_proto!("routeguide");
}
use routeguide::{server, Feature, Point, Rectangle, RouteNote, RouteSummary};