diff --git a/crates/bdk/src/lib.rs b/crates/bdk/src/lib.rs index ecd3fb239..012a868a6 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)]