Skip to content

(feat) Provide example integration with Rustls crate #138

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

Merged
merged 4 commits into from
Sep 18, 2019
Merged

(feat) Provide example integration with Rustls crate #138

merged 4 commits into from
Sep 18, 2019

Conversation

brycefisher
Copy link
Contributor

By checking this code in as an example, we can prevent bitrot as we continuously test this
in CI. It also demonstrates how to setup TLS without relying on platform specific dependencies
via native_tls crate.

First step of #123

By checking this code in as an example, we can prevent bitrot as we continuously test this
in CI. It also demonstrates how to setup TLS without relying on platform specific dependencies
via native_tls crate.
The underlying Rust library for crypto `ring` using multiple
`#[cfg_attr()]` properties together which stabilized in rust 1.33.0:
https://github.com/rust-lang/rust/blob/stable/RELEASES.md#language-4

Previously, everything else in this could be compiled with rust 1.32.0,
so this may constitute a breaking change.

fn main() -> Result<(), Box<dyn Error>> {
// Read config from environment or .env file
dotenv().ok();
Copy link
Owner

Choose a reason for hiding this comment

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

I think we probably don't need to include dotenv in this example.

@brycefisher
Copy link
Contributor Author

brycefisher commented Sep 18, 2019 via email

@brycefisher
Copy link
Contributor Author

brycefisher commented Sep 18, 2019 via email

@jonhoo
Copy link
Owner

jonhoo commented Sep 18, 2019

Hmm... Testing with a separate version just for one subcrate will be annoying, as will not having it show up as a regular example. I think I'm inclined to keep the MSRV version bump. It's too bad, but I don't think it's actually a problem since the bump won't apply to those who rely just on the imap crate (since rusttls is a dev-dependency).

@jonhoo jonhoo merged commit c8288ea into jonhoo:master Sep 18, 2019
@brycefisher brycefisher deleted the feat/rustls-support branch September 18, 2019 16:29
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