Skip to content

Ensure examples use re-exported rustls types outside of the tokio-rustls context - #56

Merged
djc merged 2 commits into
rustls:mainfrom
mdodkins:Improve-examples-to-use-re-exported-rustls-types
Mar 15, 2024
Merged

djc merged 2 commits into
rustls:mainfrom
mdodkins:Improve-examples-to-use-re-exported-rustls-types

Conversation

@mdodkins

Copy link
Copy Markdown
Contributor

Addresses an issue I encountered trying to use the client and server examples in standalone projects:

the trait From<Arc<rustls::ServerConfig>> is not implemented for TlsAcceptor
the trait From<Arc<rustls::ClientConfig>> is not implemented for TlsConnector

These modifications ensure that the code uses rustls types re-exported by tokio-rustls when compiled in a context outside of the library.

Comment thread examples/client.rs Resolved

@cpu cpu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@djc
djc merged commit 925a87f into rustls:main Mar 15, 2024
takumi-earth pushed a commit to earthlings-dev/tokio-rustls that referenced this pull request Jan 27, 2026
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.

3 participants