Skip to content

Conversation

DarkKirb
Copy link
Contributor

@DarkKirb DarkKirb commented Apr 23, 2019

This issue is related to #88 and would prevent issues like it when
openssl 1.2 comes out.

Currently, sentry-rust depends on reqwest with default feature flags,
which pulls in native-tls and openssl.

This causes multiple issues:

  1. On systems without openssl header packages installed, openssl-sys
    won't build.
  2. If distributions like arch linux update to newer versions of openssl,
    issues like Issue with openssl 1.1.1, update sentry to use reqwest 0.9? #88 will arise
  3. Systems that don't support openssl are not supported (although
    targeting embedded systems with non-unix OSes is probably not a goal
    in this project)

This commit adds support for building reqwest with rustls support, using
the new feature flag rustls with_rustls.

This fixes #136.

This issue is related to getsentry#88 and would prevent issues like it when
openssl 1.2 comes out.

Currently, sentry-rust depends on reqwest with default feature flags,
which pulls in `native-tls` and `openssl`.

This causes multiple issues:

1. On systems without openssl header packages installed, openssl-sys
   won't build.
2. If distributions like arch linux update to newer versions of openssl,
   issues like getsentry#88 will arise
3. Systems that don't support openssl are not supported (although
   targeting embedded systems with non-unix OSes is probably not a goal
   in this project)

This commit adds support for building reqwest with rustls support, using
the new feature flag `rustls`.

This fixes getsentry#136.
@mitsuhiko
Copy link
Contributor

I would merge it but since all the other features are prefixed with with_ I would do the same with these two.

@DarkKirb
Copy link
Contributor Author

I named them rustls and native-tls to be consistent with other crates, but I will change the names now

@repi
Copy link

repi commented Apr 25, 2019

Was just looking at adding this support as well so happy to find this PR :)

We also have a need for using rustls feature of reqwest and get rid of the dynamic dependency on OpenSSL

@mitsuhiko
Copy link
Contributor

Wanted to pull it already but i'm investigating at the moment why appveyor is barfing on ring :(

@mitsuhiko mitsuhiko merged commit 30ee508 into getsentry:master Apr 25, 2019
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.

Add support for systems without supported versions of OpenSSL
3 participants