Skip to content

Commit

Permalink
Fix build without rustls
Browse files Browse the repository at this point in the history
  • Loading branch information
algesten committed Sep 29, 2024
1 parent 1705b03 commit ae6bb4e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ae6bb4e

Please sign in to comment.