-
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 transport server and channel independent #1630
Conversation
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.
Very nice!
@@ -129,7 +129,3 @@ pub use self::server::ServerTlsConfig; | |||
#[cfg(feature = "tls")] | |||
#[cfg_attr(docsrs, doc(cfg(feature = "tls")))] | |||
pub use self::tls::Identity; | |||
|
|||
#[cfg(feature = "channel")] |
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 don't understand how your commit message describes this change? It seems to remove this instance and makes another instance private, but this commit doesn't "move" anything in the sense of creating something new.
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.
The definition of BoxFuture used in the implementation of the channel feature is moved to the channel module.
Ah, sorry, I just missed it for some reason. |
Motivation
Allows users to use transport server and channel features independently.
Solution
Warning
This proposal includes a breaking change.
Depends on #1574. Adds a new feature
server
to enable server implementation in transport module and makes server feature and channel feature independent.