From 60da003827b761f3a8dd29530db8675c3c92fb6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ml=C3=A1dek?= Date: Tue, 30 Sep 2025 20:50:55 +0200 Subject: [PATCH 1/2] ci: add `docsrs` cfg option --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f31c2d6c27..d43ac832c5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -42,7 +42,7 @@ jobs: - name: cargo doc -p axum-extra run: cargo doc --package axum-extra --all-features --no-deps env: - RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private-doc-tests" + RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private-doc-tests --cfg docsrs" cargo-hack: runs-on: ubuntu-24.04 From 8bcd2d9445bf33ae28ddf980b5c83a0ed5a277e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ml=C3=A1dek?= Date: Tue, 30 Sep 2025 21:24:19 +0200 Subject: [PATCH 2/2] ci: use nightly for `cargo docs` --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d43ac832c5..c61a8e21b6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v5 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@nightly - uses: Swatinem/rust-cache@v2 with: save-if: ${{ github.ref == 'refs/heads/main' }}