From 61fac8a5afdf04ac28dcec420b2cc27c21f775fb Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Mon, 3 Jan 2022 13:53:32 +0000 Subject: [PATCH] `blake2b_simd 1` We also move this dependency behind the `alloc` feature flag, as it is only required for `crate::hashtocurve`. --- Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c906b3c..23b42ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,18 +41,20 @@ harness = false required-features = ["alloc"] [dependencies] -blake2b_simd = { version = "0.5", default-features = false } ff = { version = "0.11", default-features = false } group = { version = "0.11", default-features = false } rand = { version = "0.8", default-features = false } static_assertions = "1.1.0" subtle = { version = "2.3", default-features = false } +# alloc dependencies +blake2b_simd = { version = "1", optional = true, default-features = false } + # sqrt-table dependencies lazy_static = { version = "1.4.0", optional = true } [features] default = ["bits", "sqrt-table"] -alloc = ["group/alloc"] +alloc = ["group/alloc", "blake2b_simd"] bits = ["ff/bits"] sqrt-table = ["alloc", "lazy_static"]