From 78d214b518e9238da26958bc37c699490332283d Mon Sep 17 00:00:00 2001 From: Toby Lawrence Date: Fri, 26 Apr 2024 09:03:33 -0400 Subject: [PATCH] Avoid `aws-lc-rs` feature flag when building docs. (#273) --- .github/workflows/build.yml | 3 ++- Cargo.toml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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"]