This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-3389-b154603a710d730d2f43f8af4db257cc137237ef in repository https://gitbox.apache.org/repos/asf/iceberg-rust.git
commit 73b38c70a58b0c636f910a63f49bb6c5628f1cfd Author: Yuang Gao <[email protected]> AuthorDate: Tue Oct 13 08:36:44 2026 +0000 ci: fail on rustdoc warnings (#3389) --- .github/workflows/ci.yml | 3 +++ Makefile | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9369a91e8..58ec189db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -122,6 +122,9 @@ jobs: - name: Cargo clippy run: make check-clippy + - name: Cargo doc + run: make check-doc + build: needs: lint runs-on: ${{ matrix.os }} diff --git a/Makefile b/Makefile index c596fc4bf..9da47d186 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,9 @@ check-fmt: check-clippy: cargo clippy --all-targets --all-features --workspace -- -D warnings +check-doc: + RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features --workspace + # Keep version in sync with the CI lint install step in .github/workflows/ci.yml. install-cargo-machete: cargo install --locked [email protected] @@ -96,7 +99,7 @@ install-cargo-deny: check-dependency-licenses: install-cargo-deny python3 ./dev/release/licenses.py dependencies check -check: check-fmt check-clippy check-toml cargo-machete check-license-notice check-dependency-licenses +check: check-fmt check-clippy check-doc check-toml cargo-machete check-license-notice check-dependency-licenses doc-test: cargo test --no-fail-fast --doc --all-features --workspace
