Mark `wnaf` module unstable via feature `unstable-wnaf`. Closes #13.
This commit is contained in:
parent
806d34b39a
commit
2090e76794
|
@ -12,3 +12,6 @@ repository = "https://github.com/ebfull/pairing"
|
|||
[dependencies]
|
||||
rand = "0.3"
|
||||
byteorder = "1.1"
|
||||
|
||||
[features]
|
||||
unstable-wnaf = []
|
||||
|
|
|
@ -11,6 +11,8 @@ extern crate byteorder;
|
|||
pub mod tests;
|
||||
|
||||
pub mod bls12_381;
|
||||
|
||||
#[cfg(feature = "unstable-wnaf")]
|
||||
pub mod wnaf;
|
||||
|
||||
use std::fmt;
|
||||
|
|
|
@ -62,6 +62,10 @@ pub fn curve_tests<G: CurveProjective>()
|
|||
random_encoding_tests::<G::Affine>();
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "unstable-wnaf"))]
|
||||
fn random_wnaf_tests<G: CurveProjective>() { }
|
||||
|
||||
#[cfg(feature = "unstable-wnaf")]
|
||||
fn random_wnaf_tests<G: CurveProjective>() {
|
||||
use ::wnaf::*;
|
||||
use ::PrimeField;
|
||||
|
|
Loading…
Reference in New Issue