From 3f78953874571ccb5c30bda7553b831c1f4c87d4 Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Wed, 24 Jun 2020 12:20:07 -0700 Subject: [PATCH] Add a GitHub action for building docs. (#89) This helps ensure we don't break that doc build. --- .github/workflows/test.yml | 6 ++++++ Cargo.toml | 1 + 2 files changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 62652b3..fce37c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,3 +26,9 @@ jobs: 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 --features "tls json charset cookies socks-proxy" diff --git a/Cargo.toml b/Cargo.toml index 56c4829..408b9ce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ categories = ["web-programming::http-client"] edition = "2018" [package.metadata.docs.rs] +# Keep in sync with .github/workflows/test.yml features = [ "tls", "json", "charset", "cookies", "socks-proxy" ] [features]