From bae9d0d781a9507829214d822f4c39e03e772349 Mon Sep 17 00:00:00 2001 From: Martin Algesten Date: Sun, 29 Sep 2024 16:15:10 +0200 Subject: [PATCH] Fix build without rustls --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ src/config.rs | 1 - 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 19fd1cc3..85bee611 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -96,6 +96,35 @@ jobs: command: test args: --no-default-features --features "_test rustls ${{ matrix.feature }}" + build_without_rustls: + name: Test + runs-on: ubuntu-latest + strategy: + matrix: + feature: + - "" + - charset + - cookies + - socks-proxy + - gzip + - brotli + - json + - native-tls + env: + RUST_BACKTRACE: "1" + RUSTFLAGS: "-D dead_code -D unused-variables -D unused" + steps: + - uses: actions/checkout@master + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Test + uses: actions-rs/cargo@v1 + with: + command: test + args: --no-default-features --features "_test ${{ matrix.feature }}" cargo-deny: name: cargo-deny diff --git a/src/config.rs b/src/config.rs index 337f7e73..cddab00b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -403,7 +403,6 @@ impl fmt::Debug for Config { dbg.field("http_status_as_error", &self.http_status_as_error) .field("https_only", &self.https_only) .field("ip_family", &self.ip_family) - .field("tls_config", &self.tls_config) .field("proxy", &self.proxy) .field("no_delay", &self.no_delay) .field("max_redirects", &self.max_redirects)