-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support splitting a single item into multiple files
- Loading branch information
1 parent
8402807
commit 4c26560
Showing
14 changed files
with
1,239 additions
and
3 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
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,20 @@ | ||
pub mod wrapper_arc { | ||
#![allow(warnings, clippy::all)] | ||
|
||
pub mod wrapper_arc { | ||
|
||
include!("wrapper_arc/A.rs"); | ||
|
||
include!("wrapper_arc/TestService.rs"); | ||
|
||
include!("wrapper_arc/TestServiceTestResultRecv.rs"); | ||
|
||
include!("wrapper_arc/TestServiceTestArgsRecv.rs"); | ||
|
||
include!("wrapper_arc/TestServiceTestResultSend.rs"); | ||
|
||
include!("wrapper_arc/TEST.rs"); | ||
|
||
include!("wrapper_arc/TestServiceTestArgsSend.rs"); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
pilota-build/test_data/thrift_with_split/wrapper_arc.thrift
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,13 @@ | ||
struct A { | ||
|
||
} | ||
|
||
struct TEST { | ||
1: required string ID, | ||
2: required list<list<A>> Name2(pilota.rust_wrapper_arc="true"), | ||
3: required map<i32, list<A>> Name3(pilota.rust_wrapper_arc="true"), | ||
} | ||
|
||
service TestService { | ||
TEST(pilota.rust_wrapper_arc="true") test(1: TEST req(pilota.rust_wrapper_arc="true")); | ||
} |
Oops, something went wrong.