fix(ci): fix rustdoc build by scoping docsrs cfg to rustdoc only (#458)

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
This commit is contained in:
jokemanfire 2025-10-01 00:51:52 +08:00 • committed by GitHub
commit c0b777c7f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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