doc: enable documentation of feature-gated items in docsrs
This commit is contained in:
parent
0f52eca5d9
commit
c7ae12fb64
|
@ -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"]
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue