Include proto macros (#13)
This commit is contained in:
committed by
Lucio Franco
parent
49872ce904
commit
3edaa424d9
@@ -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;
|
||||
|
||||
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user