From: 志宇 Date: Fri, 23 Aug 2024 12:14:42 +0000 (+0000) Subject: docs(chain): use `doc_cfg` feature X-Git-Tag: v1.0.0-beta.2~3^2~3 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.CodeLengthError.html?a=commitdiff_plain;h=9d47ad14ef671d83235f374e2a78f2b60e230bae;p=bdk docs(chain): use `doc_cfg` feature --- 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)]