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-5c00d464915449344c774fd910eec31488a01980 in repository https://gitbox.apache.org/repos/asf/iceberg-rust.git
commit ba849a6ed3030c237e46be3e1d39e67cebf035a7 Author: Yuang Gao <[email protected]> AuthorDate: Thu Oct 15 08:08:16 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 6674b4dad..cbff03bb1 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
