Merge pull request #176 from elichai/2019-08-rand-std-feature

Reintroduce rand-std feature
This commit is contained in:
Andrew Poelstra 2019-11-05 18:31:20 +00:00 committed by GitHub
commit 405a2ad8b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -30,6 +30,7 @@ script:
- cargo build --verbose --features=fuzztarget
- cargo build --verbose --features=rand
- cargo test --verbose --features=rand
- cargo test --verbose --features="rand rand-std"
- cargo test --verbose --features="rand serde"
- cargo test --verbose --features="rand serde recovery endomorphism"
- cargo build --verbose

View File

@ -1,7 +1,7 @@
[package]
name = "secp256k1"
version = "0.15.5"
version = "0.16.0"
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
"Andrew Poelstra <apoelstra@wpsoftware.net>" ]
license = "CC0-1.0"
@ -16,7 +16,7 @@ links = "secp256k1"
# Should make docs.rs show all functions, even those behind non-default features
[package.metadata.docs.rs]
features = [ "rand", "serde", "recovery", "endomorphism" ]
features = [ "rand", "rand-std", "serde", "recovery", "endomorphism" ]
[build-dependencies]
cc = ">= 1.0.28, < 1.0.42"
@ -28,7 +28,8 @@ path = "src/lib.rs"
[features]
unstable = []
default = ["std"]
std = ["rand/std"]
std = []
rand-std = ["rand/std"]
recovery = []
endomorphism = []
lowmemory = []