-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tls improvements reexport tokio_rustls since TlsAcceptor type must come from same version breaking change: when tls not enabled still require None to be passed, thus code written without tls feature won't be broken when tls enabled * remove Arc * Update src/tokio/server.rs --------- Co-authored-by: Ning Sun <[email protected]>
- Loading branch information
Showing
5 changed files
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
mod server; | ||
|
||
pub use server::process_socket; | ||
#[cfg(any(feature = "_ring", feature = "_aws-lc-rs"))] | ||
pub use tokio_rustls; | ||
#[cfg(any(feature = "_ring", feature = "_aws-lc-rs"))] | ||
pub type TlsAcceptor = tokio_rustls::TlsAcceptor; | ||
|
||
#[cfg(not(any(feature = "_ring", feature = "_aws-lc-rs")))] | ||
pub enum TlsAcceptor {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters