Skip to content

Commit eaf00ef

Browse files
authored
docs: replace doc_auto_cfg config with doc_cfg (#1142)
* docs: replace doc_auto_cfg config with doc_cfg * ci: enable docsrs only on rustdoc * ci: Use cargo doc to detect missing documentation on building document * ci: Remove graceful document to check * Revert "ci: Remove graceful document to check" This reverts commit 86f3ea0.
1 parent 613644d commit eaf00ef

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,7 @@ jobs:
8686
- name: Install Rust
8787
uses: dtolnay/rust-toolchain@nightly
8888

89-
# check for missing docs
90-
- name: cargo check
91-
run: cargo check --all-features
92-
env:
93-
RUSTFLAGS: "--cfg docsrs"
94-
9589
- name: cargo doc
96-
run: cargo rustdoc --all-features -- -D 'rustdoc::broken_intra_doc_links'
90+
run: cargo doc --all-features --no-deps
9791
env:
98-
RUSTFLAGS: "--cfg docsrs"
92+
RUSTDOCFLAGS: "--cfg docsrs -D rustdoc::broken_intra_doc_links"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#![deny(missing_debug_implementations)]
33
#![deny(rust_2018_idioms)]
44
#![cfg_attr(test, deny(warnings))]
5-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
5+
#![cfg_attr(docsrs, feature(doc_cfg))]
66

77
//! # warp
88
//!

0 commit comments

Comments
 (0)