-
Notifications
You must be signed in to change notification settings - Fork 152
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?
Conversation
tonic = { version = "0.9", default-features = false } | ||
tonic-build = "0.9" |
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
include!(concat!(env!("OUT_DIR"), "/protos-auto-gen/mod.rs")); | ||
} | ||
|
||
pub mod tonic { |
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.
I figure push these into a tonic
namespace to avoid conflicting with the pub use crate::{autogenerated_code::*
below
pub mod tonic { | ||
pub mod external { | ||
pub mod v1 { | ||
tonic::include_proto!("external.v1"); |
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.
not sure on this nesting here, may need to wait until the actual tonic implementations of gRPC is done
|
|
cac312c
to
9b04db0
Compare
|
|
No description provided.