-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix path in include_file function when outdir used (#544)
Co-authored-by: Lucio Franco <[email protected]> Co-authored-by: Lucio Franco <[email protected]>
- Loading branch information
1 parent
db9cd5c
commit 1825b38
Showing
7 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
syntax = "proto3"; | ||
|
||
package outdir; | ||
|
||
message OutdirRequest { | ||
string query = 1; | ||
int32 page_number = 2; | ||
int32 result_per_page = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
include!(concat!(env!("OUT_DIR"), "/lib.rs")); | ||
include!("./outdir/mod.rs"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
fn main() { | ||
let _search_req = single_include::search::SearchRequest::default(); | ||
|
||
let _out_dir_test = single_include::outdir::OutdirRequest::default(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pub mod outdir { | ||
include!("outdir.rs"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct OutdirRequest { | ||
#[prost(string, tag="1")] | ||
pub query: ::prost::alloc::string::String, | ||
#[prost(int32, tag="2")] | ||
pub page_number: i32, | ||
#[prost(int32, tag="3")] | ||
pub result_per_page: i32, | ||
} |