Skip to content

Commit 3662e27

Browse files
author
Ariel Ben-Yehuda
committed
ci: test docs with --no-deps
1 parent a162b23 commit 3662e27

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/actions/rust-build/action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,9 @@ runs:
2727
cargo test --verbose ${{ inputs.flags }}
2828
if [ "${{ inputs.toolchain }}" == nightly -a "${{ inputs.flags }}" == "--all-features" ]; then
2929
# docs use unstable features, run them on nightly
30-
RUSTDOCFLAGS="-D warnings --cfg docsrs" cargo doc --verbose ${{ inputs.flags }}
31-
fi
30+
# pass --no-deps. When *rendering* docs, is better to not use `--no-deps`,
31+
# since links in docs can link to types in dependencies, but currently, some crates
32+
# do not compile with `cfg(docsrs)` due to the feature gate name change
33+
# in <https://github.com/rust-lang/rust/pull/138907>.
34+
RUSTDOCFLAGS="-D warnings --cfg docsrs" cargo doc --verbose --no-deps ${{ inputs.flags }}
35+
fi

0 commit comments

Comments
 (0)