doc: enable documentation of feature-gated items in docsrs

This commit is contained in:
pezcore 2023-03-24 13:22:53 -04:00
parent 0f52eca5d9
commit c7ae12fb64
2 changed files with 5 additions and 0 deletions

View File

@ -54,3 +54,7 @@ rand_core = { version = "0.6.4", optional = false }
crate_rand = { package = "rand", version = "0.8.5", optional = false }
bitcoin_hashes = "0.11.0" # enable default features for test
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

View File

@ -24,6 +24,7 @@
#![deny(unused_imports)]
#![deny(missing_docs)]
#![cfg_attr(all(not(test), not(feature = "std")), no_std)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#[cfg(any(test, feature = "std"))]
pub extern crate core;