alexliesenfeld / httpmock

HTTP mocking library for Rust.
MIT License
435 stars 40 forks source link

build: add support for rustls #69

Closed seanpianka closed 1 year ago

seanpianka commented 1 year 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 1 year 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.