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:
parent
0566d132ea
commit
c0b777c7f7
1 changed files with 2 additions and 3 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
|
@ -216,15 +216,14 @@ jobs:
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: dtolnay/rust-toolchain@nightly
|
uses: dtolnay/rust-toolchain@nightly
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Generate documentation
|
- name: Generate documentation
|
||||||
run: |
|
run: |
|
||||||
cargo +nightly doc --no-deps -p rmcp -p rmcp-macros --all-features
|
cargo +nightly doc --no-deps -p rmcp -p rmcp-macros --all-features
|
||||||
env:
|
env:
|
||||||
RUSTDOCFLAGS: --cfg docsrs -Dwarnings
|
RUSTDOCFLAGS: --cfg docsrs -Dwarnings
|
||||||
RUSTFLAGS: --cfg docsrs
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release crates
|
name: Release crates
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue