-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat(transport): Make service router independent from transport #1572
Conversation
08aa8fe
to
f4eba36
Compare
24f6cf8
to
8506612
Compare
7dc3707
to
e9a5713
Compare
0945556
to
6847a34
Compare
tonic/src/transport/service/mod.rs
Outdated
pub use self::router::Routes; | ||
pub use self::router::RoutesBuilder; | ||
/// A deprecated re-export. Please use `tonic::service::{Routes, RoutesBuilder}` directly. | ||
pub use crate::service::{Routes, RoutesBuilder}; |
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.
Should we put #[deprecated]
on these deprecated re-exports? Why/why not?
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.
This is because of the limitation of #[deprecated]
.
Added a change which makes |
ab3dbc3
to
b419bb2
Compare
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.
LGTM!
Allows users to use the service router independent from transport feature.