Skip to content
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

Merged
merged 4 commits into from
Jun 20, 2024

Conversation

tottoto
Copy link
Collaborator

@tottoto tottoto commented Feb 9, 2024

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.

Copy link
Contributor

@djc djc left a 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")]
Copy link
Contributor

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.

Copy link
Collaborator Author

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.

@djc djc added this pull request to the merge queue Jun 20, 2024
@djc
Copy link
Contributor

djc commented Jun 20, 2024

Ah, sorry, I just missed it for some reason.

Merged via the queue into hyperium:master with commit 654289f Jun 20, 2024
16 checks passed
@tottoto tottoto deleted the server-feature branch June 20, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants