From 5b513c110bb1c60848eca4d1461f7c7fc5701e45 Mon Sep 17 00:00:00 2001 From: jokemanfire Date: Fri, 26 Sep 2025 17:26:40 +0800 Subject: [PATCH] fix(ci): fix rustdoc build by scoping `docsrs` cfg to rustdoc only Signed-off-by: jokemanfire --- .github/workflows/ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1db07d80..99a4251e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -216,15 +216,14 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@nightly - + - uses: Swatinem/rust-cache@v2 - name: Generate documentation run: | cargo +nightly doc --no-deps -p rmcp -p rmcp-macros --all-features env: - RUSTDOCFLAGS: --cfg docsrs -Dwarnings - RUSTFLAGS: --cfg docsrs + RUSTDOCFLAGS: --cfg docsrs -Dwarnings release: name: Release crates