From: Steve Myers Date: Tue, 20 Jun 2023 17:33:05 +0000 (-0500) Subject: [ci] fix docsrs error for bdk crate X-Git-Tag: v1.0.0-alpha.1~1 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/enum.EncodeError.html?a=commitdiff_plain;h=81c76133911b3a99a4e1303052f96c858ca65cf5;p=bdk [ci] fix docsrs error for bdk crate --- 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)]