Skip to content

Commit 78d214b

Browse files
authored
Avoid aws-lc-rs feature flag when building docs. (#273)
1 parent b6d124c commit 78d214b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ jobs:
133133
uses: dtolnay/rust-toolchain@nightly
134134

135135
- name: cargo doc (all features)
136-
run: cargo doc --all-features --no-deps
136+
# keep features in sync with Cargo.toml `[package.metadata.docs.rs]` section
137+
run: cargo doc --no-default-features --features http1,http2,webpki-tokio,native-tokio,ring,tls12,logging --no-deps
137138
env:
138139
RUSTDOCFLAGS: -Dwarnings
139140

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,6 @@ path = "examples/server.rs"
5555
required-features = ["aws-lc-rs"]
5656

5757
[package.metadata.docs.rs]
58-
all-features = true
58+
no-default-features = true
59+
features = ["http1", "http2", "webpki-tokio", "native-tokio", "ring", "tls12", "logging"]
5960
rustdoc-args = ["--cfg", "docsrs"]

0 commit comments

Comments
 (0)