-
Notifications
You must be signed in to change notification settings - Fork 121
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
Rustls optional dependency #40
Comments
Oops, just examined that this is a bad idea. Nevermind. |
Why is it a bad idea? |
|
If I'm mistaken I can reopen this issue. |
I'd say it would still make sense to have it as an optional feature so people can choose. |
This would be pretty nice |
I agree, rustls as an optional SSL/TLS behind a feature flag library is supported by a number of other libraries, including reqwest and actix-web. So it would be nice to have the same option here |
Besides, with rustls support we can build surf to |
I'm going to be slightly controversial and say that rustls should be opt out. I'm all for a bleeding edge library like |
Having rustls would allow to compile into amazon lambdas via musl. |
This depends on which surf backend is in use. Ideally we'd have configuration options for Async-h1 which is where this would sit, along with a cargo feature for it specifying the tls backend. |
I am using surf and tide at the moment and would love to be able to target musl for a slim "FROM scratch" image (been working at this most of today). I see this is an old issue and rustls has had some impressive recent benchmarks. @yoshuawuyts , any idea if this is on a roadmap or if it's tabled? |
@imuni4fun thanks for pointing that out; in terms of roadmap that would be a question for @Fishrock123 to answer who's recently taken lead of the What I can tell is that we've definitely discussed this in the past, most regularly when discussing #217 ( |
This PR is a follow-up of http-rs/http-client#53 and addresses http-rs#40. It adds a `h1-client-rustls` feature using `http-client/rustls` feature introduced by http-rs/http-client#53. Co-Authored-By: Julien Enoch <julien.enoch@adlinktech.com>
This PR is a follow-up of http-rs/http-client#53 and addresses http-rs#40. It adds a `h1-client-rustls` feature using `http-client/rustls` feature introduced by http-rs/http-client#53. Co-Authored-By: Julien Enoch <julien.enoch@adlinktech.com>
This PR is a follow-up of http-rs/http-client#53 and addresses http-rs#40. It adds a `h1-client-rustls` feature using `http-client/rustls` feature introduced by http-rs/http-client#53. Co-Authored-By: Julien Enoch <julien.enoch@adlinktech.com>
Rustls is an SSL/TLS library, written completely in Rust. It seems to be more safe and fast than OpenSSL (which is used by native-tls on Linux).
Surf uses native-tls if I'm not mistaken, which uses a native implementation on each supported platform. Would Rustls be more preferred to use in Surf?
The text was updated successfully, but these errors were encountered: