mirror of https://github.com/http-rs/surf
Allow building with `--all-features`.
`h1-client-rustls` is preferred when `h1-client` is also enabled.
This commit is contained in:
parent
876912d59e
commit
e60727afe1
|
@ -100,4 +100,4 @@ jobs:
|
||||||
- name: Check all feature combinations works properly
|
- name: Check all feature combinations works properly
|
||||||
# * `--feature-powerset` - run for the feature powerset of the package
|
# * `--feature-powerset` - run for the feature powerset of the package
|
||||||
# * `--no-dev-deps` - build without dev-dependencies to avoid https://github.com/rust-lang/cargo/issues/4866
|
# * `--no-dev-deps` - build without dev-dependencies to avoid https://github.com/rust-lang/cargo/issues/4866
|
||||||
run: cargo hack check --feature-powerset --no-dev-deps --skip=default-client,wasm-client --skip=h1-client,h1-client-rustls
|
run: cargo hack check --feature-powerset --no-dev-deps --skip=default-client,wasm-client
|
||||||
|
|
|
@ -203,7 +203,7 @@ impl Config {
|
||||||
}
|
}
|
||||||
/// Set TLS Configuration (Native TLS)
|
/// Set TLS Configuration (Native TLS)
|
||||||
#[cfg_attr(feature = "docs", doc(cfg(feature = "h1-client")))]
|
#[cfg_attr(feature = "docs", doc(cfg(feature = "h1-client")))]
|
||||||
#[cfg(feature = "h1-client")]
|
#[cfg(all(feature = "h1-client", not(feature = "h1-client-rustls")))]
|
||||||
pub fn set_tls_config(
|
pub fn set_tls_config(
|
||||||
mut self,
|
mut self,
|
||||||
tls_config: Option<std::sync::Arc<async_native_tls::TlsConnector>>,
|
tls_config: Option<std::sync::Arc<async_native_tls::TlsConnector>>,
|
||||||
|
|
Loading…
Reference in New Issue