From 0b93030582fbd954d6e6acd8a2ffd81c0d23b7b1 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Thu, 5 Sep 2024 12:28:47 -0700 Subject: [PATCH] [ci] Re-enable `cargo doc --document-private-items` in CI (#6224) [ci] Re-enable `cargo doc --document-private-items` in CI Re-enable CI checks that naga, wgpu-core, and wgpu-hal documentation builds without warnings, even with `--document-private-items`. This was previously disabled due to #4905, which causes long build times, but with the de-generification of `wgpu_core`, that's no longer a problem: a build of all three crates' docs now takes only 7s. --------- Co-authored-by: Erich Gubler --- .github/workflows/ci.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 265cee595..9762a8ecf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -220,20 +220,18 @@ jobs: # build docs cargo doc --target ${{ matrix.target }} --all-features --no-deps - # wgpu-core docs are not feasible due to - # - # - name: check private item docs - # if: matrix.kind == 'native' - # shell: bash - # run: | - # set -e - # - # # wgpu_core package - # cargo +${{ env.DOCS_RUST_VERSION }} doc --target ${{ matrix.target }} \ - # --package wgpu-core \ - # --package wgpu-hal \ - # --package naga \ - # --all-features --no-deps --document-private-items + - name: check private item docs + if: matrix.kind == 'native' + shell: bash + run: | + set -e + + # wgpu_core package + cargo doc --target ${{ matrix.target }} \ + --package wgpu-core \ + --package wgpu-hal \ + --package naga \ + --all-features --no-deps --document-private-items # We run minimal checks on the MSRV of the core crates, ensuring that # its dependency tree does not cause issues for firefox.