mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Add a feature gate for unfinished implementations.
This commit is contained in:
parent
ea5efcdc29
commit
c2bee88c0f
2 changed files with 4 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ version = "0.3"
|
|||
[features]
|
||||
default = ["std"]
|
||||
std = ["rand"]
|
||||
yolocrypto = []
|
||||
|
||||
# The development profile, used for `cargo build`.
|
||||
[profile.dev]
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue