Skip to content

Commit 54de811

Browse files
Merge #44: fix: expose TLS backend choice in features
44f7d29 fix: expose TLS backend choice in features (elsirion) Pull request description: I left the default `async-https` feature in to make this a non-breaking change. Could be phased out though imo, just make one of the new features a default feature instead. Fixes #43 Top commit has no ACKs. Tree-SHA512: 174b357ef228ec99149a9f25978aeca118bcb51b5138187a260552edc5f7a06b0cc236f79910cde07d44bc3a851448dc6eb5f9f8f87b839747a6fe1fad635570
2 parents 3496410 + 44f7d29 commit 54de811

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.github/workflows/cont_integration.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
- blocking
2525
- async
2626
- async-https
27+
- async-https-native
28+
- async-https-rustls
29+
- async-https-rustls-manual-roots
2730
steps:
2831
- uses: actions/checkout@v3
2932
- name: Generate cache key

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ default = ["blocking", "async", "async-https"]
3838
blocking = ["ureq", "ureq/socks-proxy"]
3939
async = ["reqwest", "reqwest/socks"]
4040
async-https = ["async", "reqwest/default-tls"]
41+
async-https-native = ["async", "reqwest/native-tls"]
42+
async-https-rustls = ["async", "reqwest/rustls-tls"]
43+
async-https-rustls-manual-roots = ["async", "reqwest/rustls-tls-manual-roots"]

src/lib.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,15 @@
4545
//!
4646
//! * `blocking` enables [`ureq`], the blocking client with proxy and TLS (SSL) capabilities.
4747
//! * `async` enables [`reqwest`], the async client with proxy capabilities.
48-
//! * `async-https` enables [`reqwest`], the async client with support for proxying and TLS (SSL).
48+
//! * `async-https` enables [`reqwest`], the async client with support for proxying and TLS (SSL)
49+
//! using the default [`reqwest`] TLS backend.
50+
//! * `async-https-native` enables [`reqwest`], the async client with support for proxying and TLS
51+
//! (SSL) using the platform's native TLS backend (likely OpenSSL).
52+
//! * `async-https-rustls` enables [`reqwest`], the async client with support for proxying and TLS
53+
//! (SSL) using the `rustls` TLS backend.
54+
//! * `async-https-rustls-manual-roots` enables [`reqwest`], the async client with support for
55+
//! proxying and TLS (SSL) using the `rustls` TLS backend without using its the default root
56+
//! certificates.
4957
//!
5058
//!
5159

0 commit comments

Comments
 (0)