Skip to content

Commit 9d47ad1

Browse files
committed
docs(chain): use doc_cfg feature
1 parent 5150801 commit 9d47ad1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/chain/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
//!
1818
//! [Bitcoin Dev Kit]: https://bitcoindevkit.org/
1919
20+
// only enables the `doc_cfg` feature when the `docsrs` configuration attribute is defined
21+
#![cfg_attr(docsrs, feature(doc_cfg))]
22+
#![cfg_attr(
23+
docsrs,
24+
doc(html_logo_url = "https://github.com/bitcoindevkit/bdk/raw/master/static/bdk.png")
25+
)]
2026
#![no_std]
2127
#![warn(missing_docs)]
2228

0 commit comments

Comments
 (0)