Skip to content

Commit 19685a3

Browse files
committed
Enable feature(doc_cfg) if cfg(docsrs)
This allows for `#[cfg_attr(docsrs, doc(cfg(...)))]` to properly work.
1 parent 20cdc35 commit 19685a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
#![warn(missing_docs)]
9292
#![deny(macro_use_extern_crate)]
9393
#![cfg_attr(nightly, deny(rustdoc::broken_intra_doc_links))]
94+
#![cfg_attr(docsrs, feature(doc_cfg))]
9495

9596
use cfg_if::cfg_if;
9697

0 commit comments

Comments
 (0)