Fix docs.rs to use all features

Many moon ago we were unable to build with `--all-features`, this is no
longer the case.

Instruct docs.rs to build the docs with `--all-features`.
This commit is contained in:
Tobin C. Harding 2023-02-03 09:24:48 +11:00
parent 89086d094d
commit 8596e402f2
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
3 changed files with 6 additions and 4 deletions

View File

@ -12,7 +12,6 @@ readme = "README.md"
edition = "2018"
exclude = ["tests", "contrib"]
# Please don't forget to add relevant features to docs.rs below
[features]
default = [ "std", "secp-recovery" ]
rand-std = ["secp256k1/rand-std"]
@ -31,7 +30,7 @@ std = ["secp256k1/std", "bitcoin_hashes/std", "bech32/std", "bitcoin-internals/s
no-std = ["core2", "bitcoin_hashes/alloc", "bitcoin_hashes/core2", "secp256k1/alloc"]
[package.metadata.docs.rs]
features = [ "std", "secp-recovery", "base64", "rand", "serde", "bitcoinconsensus" ]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]

View File

@ -19,6 +19,10 @@ alloc = ["internals/alloc"]
schemars = ["actual-schemars", "dyn-clone"]
serde-std = ["serde/std"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
internals = { path = "../internals", package = "bitcoin-internals" }

View File

@ -12,14 +12,13 @@ readme = "README.md"
edition = "2018"
exclude = ["tests", "contrib"]
# Please don't forget to add relevant features to docs.rs below.
[features]
default = []
std = ["alloc"]
alloc = []
[package.metadata.docs.rs]
features = ["std"]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]