]> Untitled Git - bdk/commitdiff
docs(chain): use `doc_cfg` feature
author志宇 <hello@evanlinjin.me>
Fri, 23 Aug 2024 12:14:42 +0000 (12:14 +0000)
committer志宇 <hello@evanlinjin.me>
Fri, 23 Aug 2024 13:42:57 +0000 (13:42 +0000)
crates/chain/src/lib.rs

index 3fb8c0eda7980eff714f22c0c49d5a581c9d2626..029eedc28282da3ad9c8530d66c9d70869cea0b3 100644 (file)
 //!
 //! [Bitcoin Dev Kit]: https://bitcoindevkit.org/
 
+// only enables the `doc_cfg` feature when the `docsrs` configuration attribute is defined
+#![cfg_attr(docsrs, feature(doc_cfg))]
+#![cfg_attr(
+    docsrs,
+    doc(html_logo_url = "https://github.com/bitcoindevkit/bdk/raw/master/static/bdk.png")
+)]
 #![no_std]
 #![warn(missing_docs)]