fix(identity): build with all features on docs.rs

Resolves #3810.

Pull-Request: #3828.
This commit is contained in:
Thomas Coratger
2023-04-25 16:06:54 +02:00
committed by GitHub
parent 70ca3243ad
commit 13623b2da7
2 changed files with 9 additions and 0 deletions

View File

@ -49,3 +49,10 @@ criterion = "0.4"
[[bench]]
name = "peer_id"
harness = false
# Passing arguments to the docsrs builder in order to properly document cfg's.
# More information: https://docs.rs/about/builds#cross-compiling
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
rustc-args = ["--cfg", "docsrs"]

View File

@ -33,6 +33,8 @@
//! (e.g. [ed25519 binary format](https://datatracker.ietf.org/doc/html/rfc8032#section-5.1.5)).
//! All key types have functions to enable conversion to/from their binary representations.
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#[cfg(any(
feature = "ecdsa",
feature = "secp256k1",