]> Untitled Git - bdk/commitdiff
[ci] fix docsrs error for bdk crate
authorSteve Myers <steve@notmandatory.org>
Tue, 20 Jun 2023 17:33:05 +0000 (12:33 -0500)
committerSteve Myers <steve@notmandatory.org>
Tue, 4 Jul 2023 14:02:39 +0000 (09:02 -0500)
crates/bdk/src/lib.rs

index ecd3fb2391b1ab764133c39563acaf904c253a2f..012a868a6179229a25bed09d8be0bb839a46f0c3 100644 (file)
@@ -1,4 +1,10 @@
 #![doc = include_str!("../README.md")]
+// 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)]