- name: Build
working-directory: examples/${{ matrix.example-dir }}
run: cargo build
+
+ check-docs:
+ needs: prepare
+ name: Check documentation errors
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v6
+ with:
+ persist-credentials: false
+ - name: Install Rust toolchain
+ uses: actions-rust-lang/setup-rust-toolchain@v1
+ with:
+ toolchain: ${{ needs.prepare.outputs.rust_version }}
+ override: true
+ cache: true
+ - name: Check docs
+ run: RUSTDOCFLAGS='-D warnings' cargo doc --workspace --no-deps
------------------
This codebase uses spaces, not tabs.
-Run `just check` to check formatting, linting, compilation and commit signing, `just fmt` to format code before commiting, and `just test` to run tests for all crates.
+Run `just check` to check formatting, linting, compilation and commit signing, `just fmt` to format code before commiting, `just test` to run tests for all crates, `just pre-push` to run the full pre-push suite before pushing changes and `just doc` to check documentation build warnings and errors for all packages.
This is also enforced by the CI.
All public items must be documented. We adhere to the [Rust API Guidelines](https://rust-lang.github.io/api-guidelines/about.html) with respect to documentation.
alias f := fmt
alias t := test
alias p := pre-push
+alias d := doc
_default:
@just --list
# Run pre-push suite: format, check, and test
pre-push: fmt check test
+
+# Check documentation for all workspace packages
+doc:
+ RUSTDOCFLAGS='-D warnings' cargo doc --workspace --no-deps