Skip to content

Conversation

@jbg
Copy link
Contributor

@jbg jbg commented Jan 19, 2020

Added a default feature tls-native with the status quo, and a non-default feature tls-rustls which uses rustls (with rustls-native-certs to use the platform's native cert store).

This also adds a dependency on lazy_static so that the TLS connector is only created once (saves parsing all the certs repeatedly), but lazy_static was already in the dependency tree due to several other packages in the tree depending on it.

@osa1 osa1 mentioned this pull request Jan 20, 2020
3 tasks
@osa1
Copy link
Owner

osa1 commented Jan 20, 2020

This looks great, thanks!

I don't know why Travis-CI doesn't show build errors next to commit lines now, but this needs a round of rustfmt. I'll do it myself after merging.

Opened an issue for the follow-up work: #173

@osa1 osa1 merged commit 713ab1c into osa1:master Jan 20, 2020
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