Add a new 'avx2_backend' yolocrypto feature

This commit is contained in:
Henry de Valence 2017-11-19 14:53:45 -08:00
parent 841e0d5b64
commit f28635ab4e
2 changed files with 4 additions and 4 deletions

View file

@ -70,11 +70,11 @@ nightly = ["radix_51", "subtle/nightly"]
default = ["std"]
std = ["rand", "subtle/std"]
alloc = []
# This isn't used at the moment, but keep it around for future yolocrypto features.
yolocrypto = []
yolocrypto = ["avx2_backend"]
bench = []
# Radix-51 arithmetic using u128
radix_51 = []
# Include precomputed basepoint tables. This is off by default so that build.rs can generate the tables, and then re-enabled by build.rs in the main-stage compilation.
precomputed_tables = []
# experimental avx2 support
avx2_backend = ["radix_51"]

View file

@ -29,6 +29,6 @@ pub mod u32;
pub mod u64;
/// Code using AVX2.
#[cfg(all(feature="yolocrypto", feature="radix_51"))]
#[cfg(all(feature="yolocrypto", feature="avx2_backend"))]
pub mod avx2;