Skip to content

Commit 5a8dc31

Browse files
authored
Merge pull request #327 from deltachat/h1-client-feature
Fix a typo in `set_tls_config` h1-client feature check
2 parents ebeb770 + 1cddf3f commit 5a8dc31

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ jobs:
100100
- name: Check all feature combinations works properly
101101
# * `--feature-powerset` - run for the feature powerset of the package
102102
# * `--no-dev-deps` - build without dev-dependencies to avoid https://github.com/rust-lang/cargo/issues/4866
103-
run: cargo hack check --feature-powerset --no-dev-deps --skip=default-client,wasm-client
103+
run: cargo hack check --feature-powerset --no-dev-deps --skip=default-client,wasm-client --skip=h1-client,h1-client-rustls

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ h1-client = [
2626
"http-client/native-tls",
2727
"once_cell",
2828
"default-client",
29+
"async-native-tls",
2930
]
3031
h1-client-no-tls = [
3132
"http-client/h1_client",
@@ -72,6 +73,7 @@ cfg-if = "1.0.0"
7273
getrandom = "0.2.0"
7374
encoding_rs = { version = "0.8.20", optional = true }
7475
rustls_crate = { version = "0.18", optional = true, package = "rustls" }
76+
async-native-tls = { version = "0.3.3", optional = true }
7577

7678
web-sys = { optional = true, version = "0.3.25", features = ["TextDecoder"] }
7779

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl Config {
203203
}
204204
/// Set TLS Configuration (Native TLS)
205205
#[cfg_attr(feature = "docs", doc(cfg(feature = "h1-client")))]
206-
#[cfg(feature = "h1_client")]
206+
#[cfg(feature = "h1-client")]
207207
pub fn set_tls_config(
208208
mut self,
209209
tls_config: Option<std::sync::Arc<async_native_tls::TlsConnector>>,

0 commit comments

Comments
 (0)