Expose secp256k1 'rand' feature flag

By exposing this, we can use the 'rand' dependency of secp256k1
in a project that only depends on rust-bitcoin without having to
add a separate dependency in order to activate the feature flag.
This commit is contained in:
Thomas Eizinger 2019-11-21 11:58:40 +11:00
parent 700ed54efc
commit 24bb6590d6
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ path = "src/lib.rs"
fuzztarget = ["secp256k1/fuzztarget", "bitcoin_hashes/fuzztarget"]
unstable = []
use-serde = ["serde", "bitcoin_hashes/serde"]
rand = ["secp256k1/rand"]
[dependencies]
bech32 = "0.7.1"

View File

@ -1,6 +1,6 @@
#!/bin/sh -ex
FEATURES="bitcoinconsensus use-serde"
FEATURES="bitcoinconsensus use-serde rand"
if [ "$DO_COV" = true ]
then