[core] Make cargo doc --document-private-items work again.

Add a CI job to check it, for the future.
This commit is contained in:
Jim Blandy committed 2024-04-18 18:36:47 -07:00
1 parent 543a746023
commit 54740d5982
11 files changed
+68 -50

No files matched your search

+9
View File
@@ -78,6 +78,7 @@ jobs:
# runtime is normally 2-8 minutes
#
# currently high due to documentation time problems on mac.
# https://github.com/rust-lang/rust/issues/114891
timeout-minutes: 30
strategy:
@@ -229,6 +230,14 @@ jobs:
# build docs
cargo +${{ env.DOCS_RUST_VERSION }} doc --target ${{ matrix.target }} --all-features --no-deps
- 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 }} --all-features --no-deps --package wgpu-core --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.