From 3e344dcb635fa0fef55faaa51ec153491afd228c Mon Sep 17 00:00:00 2001 From: Toby Lawrence Date: Fri, 26 Apr 2024 01:27:50 +0000 Subject: [PATCH 1/2] Avoid AWS-LC feature flag when building docs. --- .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 05a7f0d..f2f6e69 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -126,7 +126,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 6508406..6573cfa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,5 +54,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"] From 0a3503921adabd422c56c0fdda02b0ac6a3b6390 Mon Sep 17 00:00:00 2001 From: Toby Lawrence Date: Fri, 26 Apr 2024 12:54:04 +0000 Subject: [PATCH 2/2] Address PR feedback. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6573cfa..6e5f199 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,5 +55,5 @@ required-features = ["aws-lc-rs"] [package.metadata.docs.rs] no-default-features = true -features = ["http1","http2","webpki-tokio","native-tokio","ring","tls12","logging"] +features = ["http1", "http2", "webpki-tokio", "native-tokio", "ring", "tls12", "logging"] rustdoc-args = ["--cfg", "docsrs"]