Skip to content

Commit 44f7d29

Browse files
committed
fix: expose TLS backend choice in features
1 parent 3496410 commit 44f7d29

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)