Add support for alternate TLs implementations.

This commit is contained in:
Jacob Hoffman-Andrews
2021-10-04 22:47:00 -07:00
committed by Martin Algesten
parent 1c1dfaa691
commit 56276c3742
17 changed files with 527 additions and 233 deletions

View File

@@ -6,7 +6,7 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
env:
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v2
@@ -39,7 +39,7 @@ jobs:
with:
command: doc
# Keep in sync with Cargo.toml's [package.metadata.docs.rs]
args: --no-default-features --no-deps --features "tls json charset cookies socks-proxy"
args: --no-default-features --no-deps --features "tls native-tls json charset cookies socks-proxy"
build_and_test:
name: Test
runs-on: ubuntu-latest
@@ -47,7 +47,8 @@ jobs:
matrix:
tls:
- ""
- tls
- "tls"
- "native-tls"
feature:
- ""
- json
@@ -69,4 +70,4 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --features "${{ matrix.tls }} ${{ matrix.feature }}"
args: --no-default-features --features "${{ matrix.tls }}" "${{ matrix.feature }}"