Mark `wnaf` module unstable via feature `unstable-wnaf`. Closes #13.

This commit is contained in:
Sean Bowe 2017-07-14 11:56:55 -06:00
parent 806d34b39a
commit 2090e76794
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
3 changed files with 9 additions and 0 deletions

View File

@ -12,3 +12,6 @@ repository = "https://github.com/ebfull/pairing"
[dependencies]
rand = "0.3"
byteorder = "1.1"
[features]
unstable-wnaf = []

View File

@ -11,6 +11,8 @@ extern crate byteorder;
pub mod tests;
pub mod bls12_381;
#[cfg(feature = "unstable-wnaf")]
pub mod wnaf;
use std::fmt;

View File

@ -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;