alexliesenfeld / httpmock

HTTP mocking library for Rust
https://httpmock.rs
MIT License
488 stars 45 forks source link

build: add support for rustls #69

Closed seanpianka closed 2 years ago

seanpianka commented 2 years ago

isahc pulls in native-tls by default. For users of httpmock that cannot use openssl, they need to activate a variation of the rustls feature for isahc to avoid seg-faults.

This PR adds support for rustls with webpki (or native-certs), but keeps the default features of httpmock with native-tls.

Blocked by https://github.com/sagebind/isahc/issues/199

Signed-off-by: Sean Pianka pianka@eml.cc

alexliesenfeld commented 2 years ago

Thank you so much!

It seems https://github.com/sagebind/isahc/issues/199 is still not stabilized yet, so we will need to wait until this PR can be shipped.