From c2bee88c0f591700cbc1e8aaad1d350828776254 Mon Sep 17 00:00:00 2001 From: Henry & Isis Date: Mon, 20 Feb 2017 04:04:12 -0800 Subject: [PATCH] Add a feature gate for unfinished implementations. --- Cargo.toml | 1 + src/lib.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 2733c45..cb59405 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,7 @@ version = "0.3" [features] default = ["std"] std = ["rand"] +yolocrypto = [] # The development profile, used for `cargo build`. [profile.dev] diff --git a/src/lib.rs b/src/lib.rs index bd62628..1b4e73d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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.