From 9d47ad14ef671d83235f374e2a78f2b60e230bae Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E5=BF=97=E5=AE=87?= Date: Fri, 23 Aug 2024 12:14:42 +0000 Subject: [PATCH] docs(chain): use `doc_cfg` feature --- crates/chain/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/chain/src/lib.rs b/crates/chain/src/lib.rs index 3fb8c0ed..029eedc2 100644 --- a/crates/chain/src/lib.rs +++ b/crates/chain/src/lib.rs @@ -17,6 +17,12 @@ //! //! [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)] -- 2.49.0