-
Notifications
You must be signed in to change notification settings - Fork 151
Generate tonic protos for api crates #4064
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release/v7.1
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,15 @@ mod autogenerated_code { | |
| // Include the auto-generated code. | ||
| include!(concat!(env!("OUT_DIR"), "/protos-auto-gen/mod.rs")); | ||
| } | ||
|
|
||
| pub mod tonic { | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I figure push these into a |
||
| tonic::include_proto!("blockchain"); | ||
| tonic::include_proto!("external"); | ||
| tonic::include_proto!("printable"); | ||
| tonic::include_proto!("quorum_set"); | ||
| tonic::include_proto!("watcher"); | ||
| } | ||
|
|
||
| mod convert; | ||
|
|
||
| pub mod display; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,19 @@ mod autogenerated_code { | |
| } | ||
| } | ||
|
|
||
| pub mod tonic { | ||
| pub mod external { | ||
| pub mod v1 { | ||
| tonic::include_proto!("external.v1"); | ||
|
Comment on lines
+18
to
+21
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure on this nesting here, may need to wait until the actual tonic implementations of gRPC is done |
||
| } | ||
| } | ||
| pub mod t3 { | ||
| pub mod v1 { | ||
| tonic::include_proto!("t3.v1"); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| pub use autogenerated_code::{t3_v1::*, *}; | ||
|
|
||
| pub type T3Uri = Uri<T3Scheme>; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version 0.9 is the one that works with prost 0.11