Feature gate recovery module
This commit is contained in:
parent
264b368ee0
commit
c7eecd159e
|
@ -24,10 +24,11 @@ script:
|
||||||
- cargo build --verbose --features=rand
|
- cargo build --verbose --features=rand
|
||||||
- cargo test --verbose --features=rand
|
- cargo test --verbose --features=rand
|
||||||
- cargo test --verbose --features="rand serde"
|
- cargo test --verbose --features="rand serde"
|
||||||
|
- cargo test --verbose --features="rand serde recovery"
|
||||||
- cargo build --verbose --no-default-features
|
- cargo build --verbose --no-default-features
|
||||||
- cargo build --verbose --no-default-features --features="serde"
|
- cargo build --verbose --no-default-features --features="serde"
|
||||||
- cargo build --verbose --no-default-features --features="rand"
|
- cargo build --verbose --no-default-features --features="rand"
|
||||||
- cargo build --verbose --no-default-features --features="rand serde"
|
- cargo build --verbose --no-default-features --features="rand serde recovery"
|
||||||
- cargo build --verbose
|
- cargo build --verbose
|
||||||
- cargo test --verbose
|
- cargo test --verbose
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
|
|
|
@ -15,7 +15,7 @@ build = "build.rs"
|
||||||
|
|
||||||
# Should make docs.rs show all functions, even those behind non-default features
|
# Should make docs.rs show all functions, even those behind non-default features
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
features = [ "rand", "serde" ]
|
features = [ "rand", "serde", "recovery" ]
|
||||||
all-features = true
|
all-features = true
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
|
@ -30,6 +30,7 @@ unstable = []
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
fuzztarget = []
|
fuzztarget = []
|
||||||
std = []
|
std = []
|
||||||
|
recovery = []
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
rand = "0.6"
|
rand = "0.6"
|
||||||
|
|
|
@ -152,6 +152,7 @@ pub mod constants;
|
||||||
pub mod ecdh;
|
pub mod ecdh;
|
||||||
pub mod ffi;
|
pub mod ffi;
|
||||||
pub mod key;
|
pub mod key;
|
||||||
|
#[cfg(feature = "recovery")]
|
||||||
pub mod recovery;
|
pub mod recovery;
|
||||||
|
|
||||||
pub use key::SecretKey;
|
pub use key::SecretKey;
|
||||||
|
|
|
@ -174,7 +174,7 @@ impl<C: Verification> Secp256k1<C> {
|
||||||
mod tests {
|
mod tests {
|
||||||
use rand::{RngCore, thread_rng};
|
use rand::{RngCore, thread_rng};
|
||||||
|
|
||||||
use key::{SecretKey, PublicKey};
|
use key::SecretKey;
|
||||||
use super::{RecoveryId, RecoverableSignature};
|
use super::{RecoveryId, RecoverableSignature};
|
||||||
use super::super::{Secp256k1, Message};
|
use super::super::{Secp256k1, Message};
|
||||||
use super::super::Error::{IncorrectSignature, InvalidSignature};
|
use super::super::Error::{IncorrectSignature, InvalidSignature};
|
||||||
|
|
Loading…
Reference in New Issue