diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef079be..a101a65 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -133,7 +133,8 @@ jobs: uses: dtolnay/rust-toolchain@nightly - name: cargo doc (all features) - run: cargo doc --all-features --no-deps + # keep features in sync with Cargo.toml `[package.metadata.docs.rs]` section + run: cargo doc --no-default-features --features http1,http2,webpki-tokio,native-tokio,ring,tls12,logging --no-deps env: RUSTDOCFLAGS: -Dwarnings diff --git a/Cargo.toml b/Cargo.toml index edd1306..4804f4d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,5 +55,6 @@ path = "examples/server.rs" required-features = ["aws-lc-rs"] [package.metadata.docs.rs] -all-features = true +no-default-features = true +features = ["http1", "http2", "webpki-tokio", "native-tokio", "ring", "tls12", "logging"] rustdoc-args = ["--cfg", "docsrs"]