mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-11-02 20:37:03 +00:00
Mark wnaf module unstable via feature unstable-wnaf. Closes #13.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user