From 81c76133911b3a99a4e1303052f96c858ca65cf5 Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Tue, 20 Jun 2023 12:33:05 -0500 Subject: [PATCH] [ci] fix docsrs error for bdk crate --- crates/bdk/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/bdk/src/lib.rs b/crates/bdk/src/lib.rs index ecd3fb23..012a868a 100644 --- a/crates/bdk/src/lib.rs +++ b/crates/bdk/src/lib.rs @@ -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)]