on: [push, pull_request] name: CI jobs: build_and_test: name: Rust project runs-on: ubuntu-latest strategy: matrix: feature: - charset - cookies - socks-proxy env: RUST_BACKTRACE: "1" 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 "json tls ${{ matrix.feature }}" - name: Docs uses: actions-rs/cargo@v1 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"