Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/actions/rust-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,12 @@ runs:
cargo test --verbose ${{ inputs.flags }}
if [ "${{ inputs.toolchain }}" == nightly -a "${{ inputs.flags }}" == "--all-features" ]; then
# docs use unstable features, run them on nightly
RUSTDOCFLAGS="-D warnings --cfg docsrs" cargo doc --verbose ${{ inputs.flags }}
fi
# pass --no-deps. When *rendering* docs, is better to not use `--no-deps`,
# since links in docs can link to types in dependencies, but currently, some crates
# do not compile with `cfg(docsrs)` due to the feature gate name change
# in <https://github.com/rust-lang/rust/pull/138907>.
#
# It's better to keep `--no-deps` in CI, since it matches what rustdoc runs, and is
# faster.
RUSTDOCFLAGS="-D warnings --cfg docsrs" cargo doc --verbose --no-deps ${{ inputs.flags }}
fi
Loading
Loading