Skip to content

Commit 25bd1e2

Browse files
committed
CI: Use --no-doc for docs builds
So we don't choke on `doc_auto_cfg` in the `getrandom` crate just exclude building docs for dependencies.
1 parent 2010d0c commit 25bd1e2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

bitcoin/contrib/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ cargo --locked run --example taproot-psbt --features=rand-std,bitcoinconsensus
9393

9494
# Build the docs if told to (this only works with the nightly toolchain)
9595
if [ "$DO_DOCSRS" = true ]; then
96-
RUSTDOCFLAGS="--cfg docsrs -D warnings -D rustdoc::broken-intra-doc-links" cargo +nightly doc --all-features
96+
RUSTDOCFLAGS="--cfg docsrs -D warnings -D rustdoc::broken-intra-doc-links" cargo +nightly doc --all-features --no-deps
9797
fi
9898

9999
# Build the docs with a stable toolchain, in unison with the DO_DOCSRS command
100100
# above this checks that we feature guarded docs imports correctly.
101101
if [ "$DO_DOCS" = true ]; then
102-
RUSTDOCFLAGS="-D warnings" cargo +stable doc --all-features
102+
RUSTDOCFLAGS="-D warnings" cargo +stable doc --all-features --no-deps
103103
fi
104104

105105
# Fuzz if told to

hashes/contrib/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ fi
5858

5959
# Build the docs if told to (this only works with the nightly toolchain)
6060
if [ "$DO_DOCSRS" = true ]; then
61-
RUSTDOCFLAGS="--cfg docsrs -D warnings -D rustdoc::broken-intra-doc-links" cargo +nightly doc --all-features
61+
RUSTDOCFLAGS="--cfg docsrs -D warnings -D rustdoc::broken-intra-doc-links" cargo +nightly doc --all-features --no-deps
6262
fi
6363

6464
# Build the docs with a stable toolchain, in unison with the DO_DOCSRS command
6565
# above this checks that we feature guarded docs imports correctly.
6666
if [ "$DO_DOCS" = true ]; then
67-
RUSTDOCFLAGS="-D warnings" cargo +stable doc --all-features
67+
RUSTDOCFLAGS="-D warnings" cargo +stable doc --all-features --no-deps
6868
fi
6969

7070
# Webassembly stuff

internals/contrib/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ fi
4444

4545
# Build the docs if told to (this only works with the nightly toolchain)
4646
if [ "$DO_DOCSRS" = true ]; then
47-
RUSTDOCFLAGS="--cfg docsrs -D warnings -D rustdoc::broken-intra-doc-links" cargo +nightly doc --all-features
47+
RUSTDOCFLAGS="--cfg docsrs -D warnings -D rustdoc::broken-intra-doc-links" cargo +nightly doc --all-features --no-deps
4848
fi
4949

5050
# Build the docs with a stable toolchain, in unison with the DO_DOCSRS command
5151
# above this checks that we feature guarded docs imports correctly.
5252
if [ "$DO_DOCS" = true ]; then
53-
RUSTDOCFLAGS="-D warnings" cargo +stable doc --all-features
53+
RUSTDOCFLAGS="-D warnings" cargo +stable doc --all-features --no-deps
5454
fi
5555

5656
# Run formatter if told to.

0 commit comments

Comments
 (0)