Add a feature gate for unfinished implementations.

This commit is contained in:
Henry & Isis 2017-02-20 04:04:12 -08:00 committed by Henry de Valence
parent ea5efcdc29
commit c2bee88c0f
2 changed files with 4 additions and 0 deletions

View file

@ -25,6 +25,7 @@ version = "0.3"
[features]
default = ["std"]
std = ["rand"]
yolocrypto = []
# The development profile, used for `cargo build`.
[profile.dev]

View file

@ -46,6 +46,9 @@ extern crate rand;
pub mod field;
pub mod scalar;
pub mod curve;
// Feature gate decaf while our implementation is unfinished and probably incorrect.
#[cfg(feature = "yolocrypto")]
pub mod decaf;
// Constant-time functions and other miscelaneous utilities.